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

Notification

Icon
Error

Options
Go to last post Go to first unread
steelhead  
#1 Posted : Monday, January 16, 2017 8:16:52 AM(UTC)
steelhead

Rank: Member

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

Thanks: 3 times
Using just JS, no server controls. The following code works fine:
Quote:

converters: [
{ mode: '*=SourceFile' }
]


as3.converters([{
acl: 'public-read',
key: 'FilesWithThumbnails/thumbnails/${filename}',
policy: 'XXX',
signature: 'XXXX',
storageClass: 'REDUCED_REDUNDANCY',
cacheControl: 'no-cache',
expires: '0'
}


When I change converter to Thumbnail mode
Quote:
converters: [
{ mode: '*.*=Thumbnail', thumbnailFitMode: 'Crop', thumbnailHeight: 100, thumbnailWidth: 100 }
]


The S3 returns "POST requires exactly one file upload per request." error, and I can see that there is no file being posted to S3 (but all the headers are there).
What am I missing?

Thanks

Edited by user Tuesday, January 17, 2017 5:49:19 AM(UTC)  | Reason: Not specified

Alex Nikulin  
#2 Posted : Monday, January 16, 2017 8:51:15 PM(UTC)
Alex Nikulin

Rank: Member

Groups: Member
Joined: 4/12/2016(UTC)
Posts: 12

Was thanked: 3 time(s) in 3 post(s)
Maybe, you are uploading, not an image file? If a file can't be converted, nothing will be sent.

Try this,

Quote:
converters: [
{ mode: '*=Thumbnail;SourceFile', thumbnailFitMode: 'Crop', thumbnailHeight: 100, thumbnailWidth: 100 }
]
steelhead  
#3 Posted : Tuesday, January 17, 2017 5:50:22 AM(UTC)
steelhead

Rank: Member

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

Thanks: 3 times
It's an image, I even tried different images - same result. Your suggestion produced the same failed result.
Andrew  
#4 Posted : Tuesday, January 17, 2017 11:05:57 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
Please submit a support ticket (https://www.aurigma.com/account/cases/add) and send the following information:

1. An example of the file you tried.
2. What is the browser.
3. A link to the page where we can reproduce the problem. If it is not available, at least please send a full JavaScript with the uploader-related code.
4. Also, if there is no link, it may help if you send a POST request body (from the Network tab of the Developer Tools or Fiddler).
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.