Skip to content

Posting binary file via post form

I'm trying to script an engine that will upload a pdf using the post form= command but it seems that the data that gets sent is just the full path of the file eg C:\Program Files (x86)\GSA Search Engine Ranker\pdfs\mypdf.pdf

I'm using something similar to this

[PDF_File]
type=file
filter=PDF|*.pdf
hint=Choose your pdf file you wish to upload
allow html=0
must be filled=1

modify url=%uploadurl%
form request with=XMLHttpRequest
encode post data=2
post data=blah=blah&blahblah=blahblah&blahfile=%pdf_file%
just download=1

Is there a better way? I can't use an existing form on the page as there isn't one

Comments

Sign In or Register to comment.