Blueimp / jQuery-File-Upload for direct upload to S3

I am trying to implement a jimpery blueimp bootloader. I want it to load directly to S3 (no PHP script in the middle). I found an example here and followed the steps and it worked (partially). But I couldn't find anything good to download the muti file.

What I want to do is have multiple file loaders with feedback on the interface like this.

Does anyone have an example for this scenario?

Thank you for your help.

+3


source to share


1 answer


I couldn't get the blueimp to load fully on s3, it will still use my tmp folder for servers.

I ended up switching to plupload , which loads directly to s3 and has a built-in UI (I just created my own to fit the rest of my site).

I am not using the multiple file function, but you can do something like



download foreach file:

var multipart_params = {
            'key': config['key'],
            'Filename': config['key'],
            'acl': 'public-read',
            'Content-Type': '',
            'AWSAccessKeyId': config['awskey'],
            'policy': config['policy'],
            'signature': config['signature']
        };


up.settings.multipart_params = multipart_params;
up.start();

      

Hope that helps :)

0


source







All Articles