.net - Http and file uploading - How does it really work (under the hood) -


OK, this sounds a bit of a noob question but I can not fully understand a lot of web developers. I am / P>

How to upload a file with a file that uploads a file from a web page file input box to a webserver (for example, hosting a pure site)?

I understand that the post server was requested to request a stream, which is sent back to the browser and the server's data starts streaming.

My friend says that he understands that the whole file is encoded in the post request by the browser and (huge) post is sent to the server

I thought this is not the case It may be that there is no way to create an Ajax progress bar because the server will not be able to do anything until it gets the full post till that time, save this file to its disk.

So how does it actually work on the server from the browser?

Your friend is correct if you want an AJAX progress bar, then you jump through some hoops Will happen.

Typically, for uploading technology, IHttpHandler inside a IFrame stores a progress on the server on a server that is registered by an identifier in a server-word dictionary that creates the client and both of them AJAX Progress Request and Upload Post This way, when the client requests AJAX, the server can read the processing request request from that dictionary to see how many of the file POST request to the server to be processed.

Yes, it's complicated :)


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -