title: Try to use File.SAVEAS but get 404 error, because the size is big
body: <p>I'm using asp:fileupload control to upload my Picture files. So the user click on browse and select the file and click on upload and in event handler of upload button there is FileUpload.PostedFile.SaveAs () etc.</p>
  
  <p>Everything works fine. Accept when for big file size. e.g. I've got a file (jpg) 5.5 MB. When I try to upload this file I get an the error below.</p>
  
  <p>The strange thing is I the button upload file eventhandler I check the file size. If (intFileesize &lt; intFileSizeLimit) etc.</p>
  
  <p>But the strange thig is I remove all the code in Upload eventhandler for testing/debugging and I still get the error below. So the error occurs outside the Button handler. I mean 
  the error cause is not by Fileupload.SAveAs etc.... So the question is how can I avoid this. I mean I have built restriction of 1 mb, but This code is not reached.</p>
  
  <p>I don't have any problems with small sizes e.g. I could upload 400 kb w/o problem.</p>
  
  <p>So the question is what is the cause for the big file size how can I solve this?</p>
  
  <p>Other question is: Is there a tool or whatever to crop the filesize and upload? I mean even if they upload 6 mb picture, I should crop that to 50kb or whatever during upload. How to aproach this? maybe a 3rd party freeware?</p>
  
  <p>ERROR I get after 2-3 seconds</p>
  
  <p><strong>Oops! This page appears broken. HTTP 404 - File not found.</strong></p>