Strapi + Render media issues

Hi,

I’m following the Strapi+Sqlite with disk guide and have viewed similar posts on render community about media being erased after deployment.
My question is if the path for Strapi render.yaml is /opt/render/project/src/public/uploads should the disk on render dashboard be the same?

thanks

Hi there,

Thanks for reaching out.

If you’re using the Render Example repository without any changes, the public path is already configured to the disk mount path in the production middleware file: https://github.com/render-examples/strapi-sqlite/blob/master/config/env/production/middleware.js#L7

If you’re still having issues please elaborate on your issue in as much detail as possible, e.g. Service ID, any logs/error messages, reproduction steps, screenshots, etc. to show the problem you’re experiencing.

Thanks

Alan

Hi Alan,

Thanks for answering but unfortunately the example for strapi-sqlite is outdated and doesn’t apply to my project .

Hi Alan,

Thanks for answering but unfortunately the example for strapi-sqlite is outdated and doesn’t apply to my project .

[Discourse post]

Hi Kim,

Thanks for clarifying that you’re not using the Strapi SQLite Render Example repo we are planned to get the version updated.

However, the solution would be the same, the public/upload folder will need to be configured to use a path under the disk mount path to persist uploaded assets. If could elaborate on the versions you’re using we may be able to assist in pointing you in the right direction with configuration, it will be around setting the public path and/or local upload provider.

Alternative solutions may be to use services such as AWS S3, Cloudinary, or other providers for uploads, it seems these options are also available within the Strapi configuration: https://docs.strapi.io/developer-docs/latest/plugins/upload.html#using-a-provider

Kind regards

Alan