since ‎05-08-2015
‎10-12-2019
chrisa99770153
Level 1
Re: Can I use the POST function to upload a PDF file?
Avatar

chrisa99770153

chrisa99770153
- Adobe LiveCycle
Mayank, thanks for your quick response. Maybe you can help with syntax for the post function. Currently, I am getting no response from the server when using the post function but when testing the put function I get an error that indicates the put function was not accepted by the server. I can make successful file uploads using a simple HTML form that has the post method enctype of multipart/form-data.

Views

833

Likes

0

Replies

0
Can I use the POST function to upload a PDF file?
Avatar

chrisa99770153

chrisa99770153
- Adobe LiveCycle
I need a little help. My goal is to upload a PDF file to a URL and read the HTML response from the server. Is it possible to do this using the post function?Post(UploadUrl.rawValue,"C:\Users\myFile.pdf","application/pdf")

Views

885

Likes

0

Replies

2
Re: How to upload a file that stored on a web server
Avatar

chrisa99770153

chrisa99770153
- Adobe LiveCycle
Thanks again for your help. I guess the real issue I'm trying to solve for is uploading a PDF file to URL and getting a success message return i.e. ("resultCode=SUCCESS&fileAuthToken=65922027422002491920600182984091022955832")My goal is to emulate the simple form upload that illustrated below in HTML.Choose a file to upload: When I use the HTTP submit button to send the form to the target URL it returns a message that states: ("resultCode=FAILED&errorMessage=Attempt+to+Upload+0+files")When I use...

Views

960

Likes

0

Replies

0
Re: How to upload a file that stored on a web server
Avatar

chrisa99770153

chrisa99770153
- Adobe LiveCycle
Thanks for your help with this. Do you think the http get method will work if the remote file is a PDF? If so, are you aware of any examples I can look at?

Views

945

Likes

0

Replies

0
Re: How to upload a file that stored on a web server
Avatar

chrisa99770153

chrisa99770153
- Adobe LiveCycle
Yes. Maybe I misunderstood the previous post but it sounds like by entering the URL to the file residing on the server the file would be attached to the form when submitted.Here is the original post: https://forums.adobe.com/thread/341433

Views

961

Likes

0

Replies

0
How to upload a file that stored on a web server
Avatar

chrisa99770153

chrisa99770153
- Adobe LiveCycle
I read in one of the posts that there are two ways to upload / attach a PDF file to a PDF form. The conventional way of allowing the end user to browse their hard drive and attach a file and submit the attached file with the FDF form data, and the secondary approach in which the end user links to a file residing on a Web server and then submits the form data. I was hoping there are some sample scripts that illustrates the second approach of linking to a document residing on a Web server for file...

Views

2.6K

Likes

0

Replies

5
Likes given to