I am curious to know how webservers handle file uploads.
Is the entire file sent as a single chunk? Or is it streamed into the webserver – which puts it together and saves it in a temp folder for PHP etc. to use?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s just a matter of following the encoding rules so that one can easily decode (parse) it. Read on the specification about
multipart-form/dataencoding (the one which is required in HTML based file uploads usinginput type="file").Generally the parsing is done by the server side application itself. The webserver only takes care about streaming the bytes from the one to the other side.