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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    2 members have viewed this topic:
    WTM  ltwimberly 
×
×
  • Create New...

Important Information

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