geting xpconnect wrapped nsIFile when passing file in formdata

Hi,

I am trying to pass file [FileUtils.getFile()] in a formdata object to be
send to server in XMLHttpRequest. But all I get at server side is in
xpconnect wrapped nsIFile.

what I think is I am sending a xpcom wrapped file object to the formdata.
If in this case how can I send an actual file in formdata to be sent to
server?

Thanks in advance,
Aswin Devarajan
- Programmer Analyst, Firefox Student Ambassador
aswin5.github.io
0
Ashwin
9/8/2016 8:44:08 PM
mozilla.dev.extensions 5694 articles. 0 followers. Post Follow

0 Replies
517 Views

Similar Articles

[PageSpeed] 51

Reply: