Jump to content

Save a pdf to the server


This topic is 6215 days old. Please don't post here. Open a new topic instead.

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

Link to comment
Share on other sites

This topic is 6215 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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