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

Notification

Icon
Error

Options
Go to last post Go to first unread
zhenl  
#1 Posted : Sunday, October 18, 2009 6:32:47 PM(UTC)
zhenl

Rank: Member

Groups: Member
Joined: 10/16/2009(UTC)
Posts: 23

Thanks: 4 times
Hello,
I'm using ASP.NET with the image uploader. I notice after I upload image to S3, there is no event fired in server side. My question is how I can get the image imformation after it is uploaded to S3?
Thanks
Lei
Dmitry  
#2 Posted : Monday, October 19, 2009 2:18:06 AM(UTC)
Dmitry

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 Lei,

As far as I understand the question is how to trigger some event on server side where you host a page containing Image Uploader after it finishes uploading to AWS.

Image Uploader is a client component, so almost all events are fired on the client side and can be handled in JavaScript
(the additional information you can find in the Handling Upload Completion topic).

You need to specify a client event handler, for example, AfterUpload event handler and do whatever you need there: trigger post back to a server, initialize AJAX request to a server and so on.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
zhenl  
#3 Posted : Monday, October 19, 2009 8:52:35 AM(UTC)
zhenl

Rank: Member

Groups: Member
Joined: 10/16/2009(UTC)
Posts: 23

Thanks: 4 times
Hello Dmitry
Thank your very much for your information. Now I know the work process of the image uploader. Another question is how I can get the information of the resized image such as length, width, height, etc?
Thanks
Lei
Dmitry  
#4 Posted : Monday, October 19, 2009 12:07:53 PM(UTC)
Dmitry

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 Lei,

There is a bunch of properties allowing to obtain info from files selected for upload: ImageUploader.UploadFileSize Property, ImageUploader.UploadFileWidth Property, ImageUploader.UploadFileHeight Property. See reference for additional information: ImageUploader Properties (Upload Group).
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
zhenl  
#5 Posted : Monday, October 19, 2009 3:31:24 PM(UTC)
zhenl

Rank: Member

Groups: Member
Joined: 10/16/2009(UTC)
Posts: 23

Thanks: 4 times
Thanks again Dmitry
More questions. Can I change the file name of image when I upload it to s3? I want to avoid it overwritte the existing file with same name.
And how can I get the file size of thumbnail image? I found a property getUploadFileSize(Index). But not found same property of thumbnail image.
Thanks
Lei

Edited by user Monday, October 19, 2009 4:18:40 PM(UTC)  | Reason: Not specified

Dmitry  
#6 Posted : Tuesday, October 20, 2009 2:21:23 AM(UTC)
Dmitry

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 Lei,

If you specify a key in the following way:
Code:
as3.getSourceFile().setKey("${filename}");
AWS will store files by names they come with.

File size of generated thumbnail - unfortunately you cannot know it on the client side because Image Uploader creates thumbnails asynchronously and there is no way to calculate this size in advance.
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.