System Information
- Strapi Version: 4.3.0
- Operating System:
- Database: SQLite
- Node Version:
- NPM Version:
- Yarn Version:
This is my log after trying to upload an simple image. But “undefined” is wrong and has to be “public”.
[2022-08-02 21:06:09.483] debug: IPX Error (File not found (/opt/app/undefined/uploads/thumbnail_XXX_2020_10_07_0068_0124b006aa.jpg))
IPXError: File not found (/opt/app/undefined/uploads/thumbnail_XXX_2020_10_07_0068_0124b006aa.jpg)
at createError (/opt/app/node_modules/ipx/dist/chunks/middleware.cjs:76:15)
at Object.filesystem (/opt/app/node_modules/ipx/dist/chunks/middleware.cjs:94:15)
at async ipxMiddleware (/opt/app/node_modules/strapi-plugin-local-image-sharp/strapi-server.js:44:19)
at async /opt/app/node_modules/@strapi/strapi/lib/services/metrics/middleware.js:29:5 {
statusMessage: 'IPX: File not found',
statusCode: 404
}
I tried this in my middleware.js without success:
{
name: 'strapi::public',
config: {
path: '/opt/app/public/',
}
},
The Upload itself is okay and works well, but after that the error comes up.
This is the Url and maybe the url in the Media Library is wrong:
https://domain.tld/uploads/thumbnail_XXX_2020_10_07_0068_0124b006aa.jpg?width=1712&height=1712