These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

upload attached files to my server

themyth17
Registered: Apr 21 2010
Posts: 5

i have a form that i created with LiveCycle Designer, and i have my own php code that i save the submitted pdf form's data to a database on my server, but i can't send (save) the attached files to the server, any ideas??

My Product Information:
LiveCycle Designer, Windows
themyth17
Registered: Apr 21 2010
Posts: 5
i'm using a submit button which call a php file which take the xml data submitted by the pdf form and save this data to my database...
"i can't" i mean that i don't know how to send the form's attached files to my server???

so... any help.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
How are the files being attached to the PDF?

If the files are embedded into the PDF then they are not in the data sent to the server. In this case you'd need to send the entire PDF and then parse it.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

themyth17
Registered: Apr 21 2010
Posts: 5
thank you Thom,

yes the files are embedded into the PDF form.
so how to send the entire PDF?

thanks again...
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Sending the entire PDF is an option in the LiveCycle Submit Action. You can get to it by adding a regular button to your form and then modifying it to be a submit, or by modifying the action in the xml on your existing button. Here's an article on the topic:

http://www.acrobatusers.com/tutorials/modifying-livecycle-designer-form-submit-button

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

themyth17
Registered: Apr 21 2010
Posts: 5
thanks thomp,
i'll check this topic very soon, after finishing some delayed work... :S
thanks 4 ur help :D