Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
andyr  
#1 Posted : Thursday, June 16, 2005 5:49:00 AM(UTC)
andyr

Rank: Member

Groups: Member
Joined: 6/16/2005(UTC)
Posts: 1

Hi

I have built an application that uses ImageUploader to upload files to an asp.net application. If the user has no space left on their account I want to be able to return a message to the user stating this. My problem is, if I return an HTTP page with status code 200 and put the text in the body of the response I can diplay the message but the image is removed form the uplaod list giving the impression that the image was uploaded. If I return a HTTP status code of 500 or 400 then I do not seem to be able to get the response text but the image stays in the uplaod list.

Any way around this.

Cheers

Andy

Alex Makhov  
#2 Posted : Thursday, June 16, 2005 12:03:00 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups:
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

Image Uploader has upload items API (UploadFileXXX methods) which provides an access to the items in the upload list. You can use it to remove items from upload list in the case of successful upload.

So set the UncheckUploadedFiles property value to false and remove items from the upload list by using UploadFileRemove(index) method. Note that index is one-based.

Edited by user Thursday, February 14, 2008 7:07:28 PM(UTC)  | Reason: Not specified

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.