-
System.IO problems
Hi, I am using the System.IO package to copy a user selectable file from a file selector (input type="file"). When I choose small files and click 'Attach' button which I made in the ASP.NET page it enters the on_click event of the Attach button and copies the file correctly. However, when I click on a bigger file, whose size is 90MB, and click 'Attach', the famous page 'This page cannot be displayed' comes up and the on_click event of the 'Attach' button does not even fire. I do not know what the cause is and I would appreciate any help greatly!
Thanks in advance,
Timothy
-
Solved!
I solved the problem...mainly it was that I had put a runat="server" in the htmlinputfile. When I took that off, the files chosen were entering the Attach_click handler. The only thing that remained was to use some javascript to get the path from the client and I then used a hidden field which was populated with the filepath and name and referenced this in the Attach_click event.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|