Replies: 1 comment
-
|
John, First of all, have a read up on these docs about paths and installing the plugin on the server : https://github.com/GoyaPtyLtd/BaseElements-Plugin/blob/master/docs/FAQ.md You need to be able to log the result of the plugin function call, and the BE error function somewhere, so you can tell what is happening server side. But the likely issue is that you can't write outside of the FileMaker server folders without tweaking permissions on the folder and sub folders of the location you're writing to. ( FMP is different because it runs as the logged in user, so already has these permissions ). My recommendation is always to have FMS write to somewhere in the FileMaker server documents folder structure and then have some other process sync that folder to the required destination. But that's beyond the plugin capabilities. Cheers, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to export an image held in an FM Container to a folder that is synced to an FTP location for access via a website. I cannot get the script to run successfully on FM Server V19.6.
The script runs OK on FM Pro installed on the server machine with an extra / at the start of the file name, it was suggested that this should be removed for the server to run it. The script is called from another script that finds records that need updating and then loops through them to run it.
Here is the script.
Set Variable [$$filepath; Value: "Volumes/DATA/WEB IMAGES/"&Images::web file name
Set Variable [$$fileexists ; Value: BE_FileExists ($$filepath)]
If [$$fileexists=0]
Set Variable [$$export; Value BE_ExportFieldContents(images::medium image; $$filepath)
End If
I am not sure how I can troubleshoot as I do not know what is failing but I am currently having to run a FM Pro version on a copy of FM Pro on the server as a timer script which is not ideal.
If anyone can spot an obvious issue with the script any suggestions would be greatly appreciated.
I also noted that in the FM Server console the BE plug in is listed but will not stay switched on, does this mean the plug in is not correctly installed?
Thanks
John Wilson
Beta Was this translation helpful? Give feedback.
All reactions