API upload folder issue

[/System Information]

  • Strapi Version: 4.3.8
  • Operating System: macOS Monterey
  • Database: MYSQL
  • Node Version: 14.19.0
  • NPM Version: 6.14.16
  • Yarn Version: NA



I uploaded few assets in Strapi Media library API upload folder from the API using the POST method to /api/upload endpoint.

Code : fetch(’/api/upload’, {
method: ‘post’,
body: formData, // This contains certain stringify JSON object with some data
.then(res => res.json())
.then(data => {
// code

When the data was uploaded in Media library it created API upload folder automatically as per this doc Upload - Strapi Developer Docs. These uploaded data is stored in s3 bucket.

After few uploads the API upload folder got deleted. Tried to find in the server logs regarding the issue but didn’t get any such errors.

Can someone please help me with this issue. Also wanted to know if there is any existing issues being logged for the API upload folder structure in Strapi 4 ?


@Eventyret any suggestions on this OR anyone who can help me with this ?

Don’t know why I was tagged in this.

How is this deployed if I can ask?

It is hosted on nginx server.