Dropzone: 如何使用预签署的 URL 将视频上传到 S3 并在浏览器中播放? 几乎可以实现,但还不够完美。
作者: peppies创建于 2023年8月21日更新于 2026年8月6日
In the "accept" function, which fires before the actual upload, I run an xhr call to a PHP script on my site that generates presigned URLs for my S3, and then returns them to Dropzone and updates the PUT url for where to send the file to. The PHP code for creating the presigned S3 URL is as follows:
内容来源: dropzone/dropzone