How Servers (Apache/Nix) handle html file uploads..

kindaprog
kindaprog used Ask the Experts™
on
How does a server actual handle a file upload? Given a form with multipart/form-data and a field for the file. What occurs after the submit.

Is it language dependent to retrieve the file. Or does the server automatically write the file to a temp directory.

The guts and details please.

I will end up writing a script in Perl to handle this and of course most likely use a cpan module, but wanted the details first.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fixer of Problems
Most Valuable Expert 2014
Commented:
Well, that turns out to be an interesting question.  Here is one interesting bit: http://www.vivtek.com/rfc1867.html  And here is another: http://www.cs.tut.fi/~jkorpela/forms/file.html

One thing that has changed over the years is that only the file name is now passed to the server and not the entire path on the client.  This was done as a security precaution to minimize exposing data on the client to possible intruders.

Author

Commented:
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial