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

kindaprog used Ask the Experts™
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.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fixer of Problems
Most Valuable Expert 2014
Well, that turns out to be an interesting question.  Here is one interesting bit:  And here is another:

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.



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