c# - UploadFile control - get data -


how data (read file) chosen in fileupload control without fileupload.saveas method on server? possible write @ once object?

using fileupload.filecontent gives stream work with.

see msdn.

for example:

void writefilelength() {     if (fileupload.hasfile)     {         var filestream = fileupload.filecontent;         var messageformat = "the file {0} bytes in length"         response.write(string.format(messageformat, filestream.length));     } } 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -