dsg7513 2014-12-08 02:51
浏览 144
已采纳

blueimp / jQuery-File-Upload直接上传到S3

I'm trying to implement blueimp jquery uploader. I want it to upload directly to S3 (without PHP script in the middle). I found an example here and followed the steps and it worked (partially). But I could not find anything good for muti-file upload.

What I want to do is to have multiple file uploader with a UI feedback just like in this example.

Does anybody have an example to follow for this scenario?

Thanks for your help.

  • 写回答

1条回答 默认 最新

  • doufu8588 2014-12-13 20:11
    关注

    I couldn't get blueimp to perfectly upload to s3, it would still take advantage of my servers tmp folder.

    I ended up switching over to plupload which does upload directly to s3, and has a built in UI ( I just created my own to match the rest of my site).

    I'm not using the multiple file feature but you could do something like

    foreach file you are uploading:

    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 :)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题