Input-type-file path, where is it stored on AJAX request ?!?

Posted by Sheavi on Stack Overflow See other posts from Stack Overflow or by Sheavi
Published on 2010-06-04T06:09:54Z Indexed on 2010/06/04 6:19 UTC
Read the original article Hit count: 207

Filed under:
|
|
|

Hi, I have been monitoring the parameters a website receives when a file is uploaded (via an input type="file"). Surprisingly, the parameter and its value were looking like this :

parameter: upfile

value: filename="this is the name of the uploaded file.png" Content-type: image/x-png

Now in this POST request to the server page, the file name and its type is passed into a parameter, but what about the path to that filename? Where is that path stored so that the server page can upload the file at the good location?

Also, I would like to know if it would be possible by any way to specify a path, NOT to the input type="file" since its impossible, but to the server (though this question probably depends a lot on how the server-side page is scripted).

Thank you for your answers.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about AJAX