Does Flajaxian stream directly to S3?

Nov 9, 2008 at 12:47 PM
Hi Flajaxian folks

Just having my first look at the Flajaxian component. So far it looks really interesting.
But: I would like to use Flajaxian to get user uploads to the S3 servers directly (not via my server) to save a lot of bandwidth usage on my servers.
So I'm interested in knowing if the Flajaxian component uploads directly to S3 or if it uses the webserver as a 'proxy'.

Best

Rasmus Wehner
Denmark
Coordinator
Nov 9, 2008 at 3:25 PM
Edited Dec 8, 2008 at 9:45 PM
The answer is 'no' it is used only through a proxy but you can buy the direct uploader from www.flajaxian.com
Nov 19, 2008 at 10:48 PM
Edited Nov 19, 2008 at 11:07 PM
Hi Flajaxian folks

Too bad - direct upload to S3 would have been a 'killer' feature as far as I can see.
Direct uploading of files would make a huge difference to web sites having a lot of upload traffic, saving tons of bandwidth usage on the 'local' servers.
That would be one way to use S3 to remove one of the typical bottlenecks in running your own servers.

Do you guys (and girls?) have a 'feature request' list somewhere? If so, I would like to vote for direct uploading to S3.
Is it realistic that such a feature could be implemented or should I look for some other component to do this (in no way meant to sound like a thread, but I sorely need this feature :-)

Best and keep up the wonderful work!

Rasmus Wehner
Denmark
Coordinator
Nov 20, 2008 at 11:36 AM
Flash would not be able to handle Dime but with Rest it may be possible. I can look at this on the weekend.
Coordinator
Nov 20, 2008 at 11:58 AM
There is one problem with direct call though. If you want your client to stream directly to the amazon server that means that your client must know the secret key. Of course we can imagine that the client may get the  key encrypted, then decrypt it and send it over ssl but still someone can always decompile flash client and get the decryption algorithm.

So the question is: Are you willing to trade security for bandwidth?
Coordinator
Nov 20, 2008 at 3:51 PM
... ok it is possible to have a quick ajax call before the upload initiation that will get only the encypted policy and signiture. I can think about this on the weekend.
Nov 23, 2008 at 9:27 PM
Hi Flajaxian

Sorry for not getting back to you before now. Weekend with the family...

But: can a Flash client read values from hidden fields on the HTML page where the Flash client is embedded?
If so, then one could put the upload policy, the encrypted version of the policy etc. (please see: http://docs.amazonwebservices.com/AmazonS3/2006-03-01/UsingHTTPPOST.html ) into hidden fields on the server side and just let the Flash client read those values from the hidden fields and use them, when the Flash client uploads files directly to S3.

I've uploaded a small example of what I was thinking about. If you have the time, then you're more than welcome to fetch it at:
http://www.mimia.dk/s3/s3_showcase.zip

This example is a pure ASP.NET (VB) / HTML example (no Flash, unfortunately) of direct upload to S3 from the clients browser.
To get it working, you should change all the 'XXXXXXXXXXXXXXXXXXXX' parts in both the .aspx and the .aspx.vb file. And beware that there are parts of the .vb file that needs to get changed to your own S3 info (bucket names, AWS Secret Access Key etc.).
I'm using this method (in a more complete and better error handling version, of course) on a production server right now, but I would like to get a Flajaxian upload component onto the form to let the users have a functional progress bar on the upload part.

I can see that others are strugling to get direct Flash upload to S3 to work, not sure if these links are of any help to you:
http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1092
http://swfupload.org/forum/generaldiscussion/465
http://blog.deskcaster.com/2008/05/08/flash-based-uploads-to-amazon-s3/

It even seems like you could earn $20 if you come up with a working solution (see last link) - not bad to be a Flash pro, heh? :-)

Hopefully I could persuade you to look a bit more into this 'problem' as I'm pretty sure tons of other people would benefit from a solid Flajaxian solution.
And please let me know, if there is anything I could do to help you (except for doing Flash ActionScripts, of which I have more or less no experience).

Best

Rasmus Wehner
Denmark
Coordinator
Nov 24, 2008 at 12:23 AM
Thanks rawe, I am already working on that.

The control should be ready within a week or so. We may have to chanrge something like $20 for this one though.
Nov 26, 2008 at 9:51 AM
Edited Nov 28, 2008 at 9:41 PM
Hi Flajaxian

Great news!
Looking very much forward to seeing what solution you come up with.
And $20 would be a fair price for this piece of software - and with the money from me and from that other guy (the link I sent you the other day) you will soon have an income of about $40... :-)

Best

Rasmus W
Denmark
Dec 5, 2008 at 1:41 AM
Hi,

If you send me the "Direct Build", I'll gladly get you this crisp US$20 bill via PayPal or whatever you like.  :)

Thanks,

-Calvin
Coordinator
Dec 5, 2008 at 5:35 AM
Flajaxian Direct Amazon Uploader 1.0 will be available within 1 or 2 days. For now you can see the docs of how to use it:

http://flajaxian.com/flajaxian.com/DirectAmazonUploader1.0Help.html
Coordinator
Dec 8, 2008 at 9:37 PM
You can buy it now from http://flajaxian.com/ it will be e-mailed to you within 12 hours.