0

I've gone [this question here] (How can I upload files asynchronously?) and understood the whole AJAX file upload using JavaScript/jQuery.

However, unlike the example in the link above, my server script to process the uploaded data will not be a php file but a JavaScript file (e.g. called "chooseFile.js"). My question is: how can I read the contents of the uploaded file in "chooseFile.js"? I've tried to search for this everywhere but the information is all about uploading a file and not processing it.

Community
  • 1
  • 1
AliKhokhar
  • 55
  • 2
  • 7
  • You need Node.js server-side if you want to execute JavaScript server-side. – Brad May 03 '14 at 19:14
  • There are lots of examples of using Node.js in this fashion. For e.g. http://www.componentix.com/blog/9/file-uploads-using-nodejs-now-for-real – ctrlplusb May 03 '14 at 19:22

0 Answers0