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

Notification

Icon
Error

Options
Go to last post Go to first unread
fbrussa  
#1 Posted : Wednesday, December 29, 2010 6:48:01 AM(UTC)
fbrussa

Rank: Newbie

Groups: Member
Joined: 12/29/2010(UTC)
Posts: 6

Hi, I'm testing the professional version 7.

I'm using the Uploader control (php) to send images directly to AmazonS3.

I created 3 converters to resize the image and works perfect.

I only need 2 things:

1. How to change the name of each file to upload:
I'm using the method: fs-> setkey ($ destination_folder. $ subfolders [$ i] .'/${ filename} ');. I need to change the $ filename for a guid and it is different for each file.


2. How do I get the list of files that I have come up with their descriptions and their guids. This need to do it in javascript, because I do not upload to my server, but I go directly to Amazon.


Thanks
Dmitry.Obukhov  
#2 Posted : Thursday, December 30, 2010 4:06:52 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Fabián,

Thanks for contacting us.
  1. Quote:
    How to change the name of each file to upload:…?

    Unfortunately, it is impossible to change the file names when uploading to Amazon S3.
  2. Quote:
    How do I get the list of files that I have come up with their descriptions and their guids.
    You can use BeforUpload event to get file information before uploading.
If you have any questions, please let me know.

Edited by user Thursday, December 30, 2010 4:07:37 AM(UTC)  | Reason: Not specified

Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
fbrussa  
#3 Posted : Thursday, December 30, 2010 4:35:41 AM(UTC)
fbrussa

Rank: Newbie

Groups: Member
Joined: 12/29/2010(UTC)
Posts: 6


1. The problem is that if they go up two images from different folders, but with the same name is overwritten.



2.
Dmitry.Obukhov wrote:

You can use BeforUpload event to get file information before uploading.


I need to know the name and description of each file that was sent to S3.

I tried to use the event "AfterPackageUpload. " This is a parameter "packageIndex" but can not find how to get the detail package.

I prefer to use this event because it occurs every time a file is uploaded.


You tell me to use the event "BeforUpload. " Here I can access the collection of files (this.files()) and their descriptions and then at the "AfterUpload" update all that info to my database?.

thank you very much!.

Dmitry.Obukhov  
#4 Posted : Monday, January 3, 2011 12:10:09 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Fabián,

Quote:
I need to know the name and description of each file that was sent to S3.
I tried to use the event "AfterPackageUpload.

Yes, you can use AfterPackageUpload event. Here is the code snippet whish shows how to get file name and file description:
Code:
function AfterPackageUpload (packageIndex, response) {
  uploader = $au.uploader('Uploader1');
  //Get file name
  value = uploader.files().get(0).name();
  //Get description
  value2 = uploader.files().get(0).description();
  alert("File name: " + value + " Descroption: " + value2);
}
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
fbrussa  
#5 Posted : Monday, January 3, 2011 3:40:24 AM(UTC)
fbrussa

Rank: Newbie

Groups: Member
Joined: 12/29/2010(UTC)
Posts: 6

Thanks Dmitry for your response.

This works well, but I need to know the full name of the uploaded file. Is possible to get the full name of the file extension?.

The problem is that when uploading a file named "file1.jpg" the method "uploader.files (). get (0). name ()" only contain "file1", and then S3 is saved as "file1.jpg_Thumbnail0.jpg"


Dmitry.Obukhov  
#6 Posted : Monday, January 3, 2011 4:04:48 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Fabián,

I tested this property, and it allows getting the full file name with file extension. Please check it once again.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
fbrussa  
#7 Posted : Monday, January 3, 2011 4:41:56 AM(UTC)
fbrussa

Rank: Newbie

Groups: Member
Joined: 12/29/2010(UTC)
Posts: 6

Chrome in w7

UserPostedImage

In firefox same problem.
In IE work fine.




Dmitry.Obukhov  
#8 Posted : Tuesday, January 4, 2011 1:08:15 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hi,

Thanks for the screen shot.

I checked “Hide extensions for known file type” item in the Folder options of Windows 7. Then I tested my sample application once again, and got the same result as you did – file name without extension.

If file extension are shown in Windows, file.name() property will work okay, and full file name (with extension) will be displayed.

Unfortunately, it is a bug of Image Uploader 7 Java. It will be fixed in the next minor version, which will be released in 8 weeks. Sorry for the inconvenience.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Dmitry.Obukhov  
#9 Posted : Thursday, May 5, 2011 7:05:16 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Fabian,

I am glad to inform you about new Image Uploader 7 release (7.0.28). It is available to download from our website. Please read additional information on release changes, and bug fixes in the Image Uploader 7.0.28 is released topic on Aurigma forum.

The complete Image Uploader 7.0.28 documentation: http://www.aurigma.com/docs/iu7/

If you have any additional questions or problems, please feel free to let us know.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
fbtech  
#10 Posted : Thursday, June 6, 2013 2:33:04 PM(UTC)
fbtech

Rank: Newbie

Groups: Member
Joined: 6/4/2013(UTC)
Posts: 6

Can I get this full file name in PHP or Javascript?
vitaly  
#11 Posted : Thursday, June 6, 2013 10:06:38 PM(UTC)
vitaly

Rank: Advanced Member

Groups:
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Hi fbtech,

I have replied you in the topic: http://forums.aurigma.co...-full-uploaded-file.aspx
Best regards,
Vitaly Kustov
Aurigma Technical Support
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.