Uploaded files disappears after restart


#1

Images uploaded using Meteor-Files disappears in the apps file system after restart (locally in my development environment) though still in the db. Why?


#2

There is a storagePath option where you set where your files are stored. By default, it is stored within the app’s running script root somewhere (probably in the .meteor/local folder) and that location might get cleaned up. So you should provide a location outside your app directory.


#3

I want users to be able to upload images that are personal but can be viewed by others (and not get deleted when restarting the app). Suggestion of storagePath?


#4

storagePath is something Meteor-Files knows so that it knows where to pick the files from before serving them.

At which URL’s it serves the files, if they are public or protected and any other file serving configuration should also be provided.

You should check the documentation and examples.