英文:
Filepond Upload Status shows "Upload Complete" before the file is uploaded
问题
因为S3上传函数是异步上传文件的,所以Filepond方法会在文件完全上传之前显示文件状态为“上传完成”。有没有一种方法可以创建依赖关系,直到文件完全上传到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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论