Jun 01, 2010, 8:35 PM
[CLOSED] [1.0] - MVC - How to get FileUploadField's Content
Hi,
Is there a way to pass the content (byte[]) of the FileUploadFiled (after a file is selected) to a Controller?
[Update]
I have the IsUpload="true" for the DirectEvent, I think I can access the file content in the controller using this.Request.Files but when return, the browser prompt the user whether to open the file... in which I should not prompt at all.
Thank.
Is there a way to pass the content (byte[]) of the FileUploadFiled (after a file is selected) to a Controller?
[Update]
I have the IsUpload="true" for the DirectEvent, I think I can access the file content in the controller using this.Request.Files but when return, the browser prompt the user whether to open the file... in which I should not prompt at all.
Thank.