Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in ajax file upload control of asp.net

Tags:

ajax

asp.net

I am getting following error when i try to upload the file on the asp.net directly

index-1.jpg (image/jpeg) - 7.72 kb (error) (In red sign)

<ajaxToolkit:AjaxFileUpload ID="imageUploader" CssClass="uploadBox" OnUploadComplete="imageuploader_onUploadComplete" ThrobberID="imagethrobber" AllowedFileTypes="jpg,jpeg,png,bmp" MaximumNumberOfFiles="1" runat="server" />

Following is my code.

            //=========== Uploaded file format ============================
            string filename = e.FileName;

            //============== Upload the file ==============================
            imageUploader.SaveAs("~/articleimage/"+filename);

Kindly please help me in solving this issue. I am using visual studio 2010 , .net 4 and ajaxcontroltoolkit for 2010.

like image 591
greatmajestics Avatar asked Mar 24 '23 11:03

greatmajestics


1 Answers

I had the same issue an hour back. Found solution. Please see the below link.

AjaxfileUpload error

like image 92
Muhammad Saad Avatar answered Apr 11 '23 08:04

Muhammad Saad