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
Post a Comment