Skip to content
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

Images disappear after server restart #46

Closed
achirkof opened this issue Nov 1, 2015 · 2 comments
Closed

Images disappear after server restart #46

achirkof opened this issue Nov 1, 2015 · 2 comments

Comments

@achirkof
Copy link

achirkof commented Nov 1, 2015

I am saving all my images in directory: storagePath: 'assets/uploads/avatars/' and after restart server directory with files disappear. All data still exist in collection but files are gone. Maybe I have to store images in another place?

@dr-dimitru
Copy link
Member

As meteor completely rebuild server directory after you've made changes on server-side all uploaded files will be removed. During development you may change storagePath option to something relative to your FS (/tmp/UploadedFiles) or relative to your user (~/tmp/..)

@achirkof
Copy link
Author

achirkof commented Nov 2, 2015

Yes, it helps. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants