4

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.

1 Answer 1

7

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

AjaxfileUpload error

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.