Load Image with Javascript from ASP.NET FileUpload control?

You file is not uploaded until you do a post back, it sounds like your only browsing to the file and then trying to get a thumbnail before you post back/upload the image.

I will take care of uploading the image at a later point in the lifecycle. – puddinman13 May 9 at 18:56 Actually, no, it doesn't. The file upload control has a very restrictive set of permissions, and any sort of client side processing is disabled.

– Blindy May 9 at 18:59 Your other option is to use a ajax style upload control, that can immediately post back your file to the server. Here is a link with a few examples that use jQuery. Webdeveloperjuice.

Com/2010/02/13/… – Zachary May 9 at 20:35 Here is another link that looked good, it describes a snipped to allow you to upload and preview an image. Zurb.Com/playground/ajax_upload – Zachary May 9 at 20:42.

After all of your input, I have changed my FileInput control code to be as follows: I then added a test to the Page. OnLoad event to determine if the file is ready to be uploaded. If (fluPicture.

PostedFile! = null && fluPicture.PostedFile. ContentLength > 0) UploadImage(); Then I allowed the UploadImage() method to upload the image, store it, and then set the url of the imagebox to the uploaded image's url.

Thank you all for your help and input. Also, I appreciate the jQuery ideas. In this instance I just needed something quick and dirty to get the job done.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions