[英]How to upload multi files to amazon S3 directly with the form data?
There is a form at the front-end like this to allow user insert a video list record. 前端有一个这样的表单,允许用户插入视频列表记录。
<form action ="" method="post" enctype="multipart">
<input type="file" name="files[]">upload1
<input type="file" name="files[]">upload2
<input type="file" name="files[]">upload3
<input type="file" name="files[]">upload4
<input name="list_name" />
</form>
each record has at least 2 video files , and 4 files at max. 每个记录至少有2个视频文件,最多4个文件。
The problem is , From the offical tutorial, 问题是,在官方教程中,
https://github.com/aws/aws-sdk-php https://github.com/aws/aws-sdk-php
The file is temporary store at my server before upload to s3 , I wonder how to upload directly to s3 in PHP ( or code-igniter )? 该文件在上传到s3之前是临时存储在我的服务器上,我想知道如何在PHP(或代码点火器)中直接上传到s3? Also post the 'list_name" to my server before start upload to s3 ? 在开始上传到s3之前,还要将“ list_name”发布到我的服务器上吗?
Thanks a lot for helping. 非常感谢您的帮助。
The only way is to use multiform 唯一的方法是使用多格式
<form action ="" method="post" enctype="multipart">
<input type="file" name="files[]">upload1
</form>
<form action ="" method="post" enctype="multipart">
<input type="file" name="files[]">upload2
</form>
<form action ="" method="post" enctype="multipart">
<input type="file" name="files[]">upload3
</form>
and upload using jquery upload plugin 和使用jQuery上传插件上传
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.