andries Posted October 20, 2009 Posted October 20, 2009 Hi I am trying to "upload" a file via the PHP API to my FileMaker database. With PHP I upload the file to the webserver. From there I would like to insert it into my FileMaker database (embedded). As Insert Picture is not a Web compatible script step I was thinking to use ScriptMaster and the GetFileAsContainer module. However I have the feeling this is not working... If I run the script from my local computer it all works fine, but when I trigger the script via PHP I only get a question mark back. This means that he does not know the function I guess. I have installed the plugin on my Server, and activated it. But then this question came up: can I use the ScriptMaster plugin in this way? Is it server compatible? It is my first time I am really trying to use a plugin on the server side, so I already apologize if I asked a stupid question... Thanks in advance Andries
Smef Posted October 20, 2009 Posted October 20, 2009 In addition to installing it in your usual directory on your server, you will also need to install the plugin to .../FileMaker Server/Web Publishing/publishing-engine/wpc/Plugins in order to use it with php.
andries Posted October 22, 2009 Author Posted October 22, 2009 (edited) thanks ! this works. Really... this plugin rocks ! Edited October 22, 2009 by Guest
abross86 Posted October 19, 2013 Posted October 19, 2013 Sorry to dig up an old topic but im trying to do something similar and not having any luck. I have scriptmaster (v.4.205) installed as a web publishing plugin on my server. I am running filemaker server 11.0v5 on osx 10.8.4. My php triggers a script which inserts a file (which resides on the filemaker server itself) into a container using GetFileAsContainer. I know the plugin is installed correctly because I was able to insert a gradient into the same container from php using the scriptmaster function GradientImage. When I try to insert the file, though, the container just displays "ERROR". In addition I was able to run the same script on a file at the same path on a client and it worked perfectly. The permissions on the file are also set correctly. Anybody besides andries done this successfully and have some advice?
Recommended Posts
This topic is 4064 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now