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



Go to last post Go to first unread
#1 Posted : Saturday, December 13, 2008 4:06:21 AM(UTC)

Rank: Newbie

Groups: Member
Joined: 9/17/2008(UTC)
Posts: 2


When users upload images to our site we do some server side validation. In some cases we need to discard the image and return an error message to the user.

How can I accomplish this? Now, the user always get the message "Successful Upload" even the serverside validation failed.

#2 Posted : Tuesday, December 16, 2008 2:39:00 PM(UTC)

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello Niklas,

All you can do with the current Image Uploader verion is to return the required infromation to the client via response. You get this response in ImageUploader.PackageComplete Event and decide what to do. Unfrotunately it solves your task partially because Image Uploader will raise "Upload Complete" message box in the case even when server validation is failed. Nevertheless you can use the workaround: switch Image Uploader to silent mode (ImageUploader.SilentMode Property) and implement progress bar and the other notifications on the client by yourself.

Edited by user Tuesday, December 16, 2008 2:40:12 PM(UTC)  | Reason: Not specified

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
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.