简体   繁体   English

在连接到 AWS S3 Bucket 上传提供商的 Strapi 媒体库上上传文件时出现“文件为空”错误

[英]'FIles are Empty' error when uploading files on Strapi Media Library which connects to AWS S3 Bucket upload provider

I am facing an issue with strapi upload provider.我正面临 strapi 上传提供商的问题。 I have connected strapi with aws upload provider s3 bucket, and deployed it to production.我已将 strapi 与 aws upload provider s3 存储桶连接起来,并将其部署到生产环境中。

Untill 2 days ago I was able to upload images from strapi normally and see them getting saved in AWS.直到 2 天前,我才能够正常地从 strapi 上传图像并看到它们被保存在 AWS 中。 But since yesterday Im getting 'Files are empty' Error every time Im trying to upload something from production.但是从昨天开始,每次我尝试从生产中上传内容时,我都会收到“文件为空”错误。

(If I try to upload locally from localhost, everything works fine and the image is uploaded in AWS, so this is a PROD specific issue) (如果我尝试从 localhost 本地上传,一切正常并且图像上传到 AWS,所以这是一个 PROD 特定问题)

Can somebody help here?有人可以帮忙吗? Where is this issue comming from?这个问题从何而来?

在此处输入图像描述

I confirm axios > 0.27.2 breaks the file upload.我确认 axios > 0.27.2 中断了文件上传。 I had axios@1.1.3 installed and reverting to 0.27.2 fixed the issue.我安装了 axios@1.1.3 并恢复到 0.27.2 解决了这个问题。

You can try axios 1.2 too I think https://github.com/axios/axios/pull/5224您也可以尝试 axios 1.2 我认为https://github.com/axios/axios/pull/5224

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM