Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin Uploads fails with axios >= 1.0.0 #15186

Closed
Pablo-Aldana opened this issue Dec 15, 2022 · 1 comment · Fixed by #15249
Closed

Admin Uploads fails with axios >= 1.0.0 #15186

Pablo-Aldana opened this issue Dec 15, 2022 · 1 comment · Fixed by #15249

Comments

@Pablo-Aldana
Copy link

Bug report

If you upgrade to axios version greater than 0.27.2 (versions 1.0.0, 1.1.0 .... 1.2.1 ) file upload via web admin fails.

Required System information

  • Node.js version: 16.5.1
  • NPM version: 8.11.0
  • Strapi version: 4.5.4, 4.5.3, 4.5.2
  • Database: Postgress
  • Operating system: Almalinux 9 and macOS Ventura

Describe the bug

If you upgrade to axios version greater than 0.27.2 (versions 1.0.0, 1.1.0 .... 1.2.1 ) file upload via web admin fails, giving the following error:

image

image

however It does not throw anything on the logs

Steps to reproduce the behavior

  1. got to package.json
  2. Upgrade version of axios from 0.27.2 to a newer
  3. run yarn install, yarn build, yarn development
  4. Go to Media library and upload a file

Expected behavior

File should upload without issues with newer versions of Axios.

Additional context

We should be able to use newer versions of axios to avoid security issues and have bug fixes of this library.

@re2005
Copy link

re2005 commented Dec 16, 2022

Same issue, already couple months ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants