NetTalk Central

Author Topic: Upload file with javascript  (Read 3283 times)

elcidsps

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Email
Upload file with javascript
« on: June 17, 2009, 11:44:02 AM »
Gurus!!!!

The javascript file I need to use for uploading files produces the following post:

POST /frmdatahandler HTTP/1.1
Host: localhost:88
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:88/
Cookie: SESSIONID=1177683760
Content-Type: multipart/form-data; boundary=---------------------------41184676334
Content-Length: 642

-----------------------------41184676334
Content-Disposition: form-data; name="recordid"


-----------------------------41184676334
Content-Disposition: form-data; name="documentname"

Wdwewewr
-----------------------------41184676334
Content-Disposition: form-data; name="documentfile"; filename="menu.gif"
Content-Type: image/gif

GIF89aú

How do I upload the document file from this post?  Thanks for any insight.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Upload file with javascript
« Reply #1 on: June 18, 2009, 10:57:02 PM »
The NetTalk server handles this post in the normal way.

I'm not sure I understand your question though - are you saying this is an incoming post to your server?

Is the file not being dropped into the Uploads folder as normal?

Cheers
Bruce