Filepond上传状态在文件上传之前显示为“上传完成”。

huangapple go评论135阅读模式
英文:

Filepond Upload Status shows "Upload Complete" before the file is uploaded

问题

因为S3上传函数是异步上传文件的,所以Filepond方法会在文件完全上传之前显示文件状态为“上传完成”。有没有一种方法可以创建依赖关系,直到文件完全上传到S3之前不执行任何操作?

日志显示它显示“上传完成”,但S3日志显示仍在上传

英文:

Because S3 upload functions upload the file asynchronously, the filepond method shows file status as "Upload Complete" until its completely uploaded. Is there a way to create a dependency to not do anything until the file is completely uploaded to S3?

Log to show it shows Upload Complete but S3 logs shows its still uploading

答案1

得分: 1

如果S3服务返回200 OK给文件表单提交,FilePond会认为上传已完成。

要解决这个问题,您可以设置一个自定义处理方法来优化上传过程:https://pqina.nl/filepond/docs/patterns/api/server/#process-1

英文:

If the S3 service returns a 200 OK to the file form post FilePond assumes the upload has completed.

To resolve this you can set up a custom processing method to finetune the upload process: https://pqina.nl/filepond/docs/patterns/api/server/#process-1

huangapple
  • 本文由 发表于 2020年1月7日 01:16:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/59616301.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定