-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Strapi Default File/Image Store #4302
Comments
So feel free to add a PR 😉 |
Hello @danielamiir ! |
But, where is it saved though? |
@Seanmclem the default provider stores the files on the local file system in |
Strapi stores the media files using the file system in ./public/uploads there is no way to configure strapi to stores the file in a database in binary format. However you can write your own code to save the file in binary format. |
FYI, there is an community upload provider to save file in the mongoDB: https://github.com/AHgPuK/strapi-mongodb-files |
How is Strapi saving files/images by default if I have connected to a MongoDB instance? It currently seems unclear whether Strapi is saving uploaded files to MongoDB or just locally? I am going to deploy Strapi in a production container environment that can sometimes be restarted, meaning if the container crashes&restarts, I should still be able to access uploaded images/files.
The documentation is unclear on this topic. It should clearly state what data is saved where with different configurations and setups.
The text was updated successfully, but these errors were encountered: