Jump to content
Sign in to follow this  
David Jondreau

Save a pdf to the server

Recommended Posts

Is it possible to use Filemaker to move a pdf from a local drive to the server disk? I think I've got the right idea, but I get an error message when I try to create a file on the server. This db is hosted by a third party server.

The script I have is as follows:

#IS THIS FILEPATH CORRECT?

Set Variable[$filepath; Get(FilePath) & "/Contracts/Contract_" & Invoices::)_kp_idInvoice & ".pdf"]

#

#User selects pdf

Insert File[invoices::ContractContainer]

#Script saves pdf to server, clears the field, then inserts a reference to that pdf

#

#THIS IS WHERE I GET ERROR 800, CAN'T BE CREATED ON DISK

Export Field Contents[invoices::ContractContainer; "$filepath"]

#

Go to Field[invoices::ContractContainer]

Clear[select]

Insert Picture[Reference; $filepath]

Thanks

DJ

Share this post


Link to post
Share on other sites

I'm not quite sure but this looks ok except I don't think you should use the "$" symbol as part of a field name. If that is not it I would say the issue is on the server end.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.