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

what method to use to upload image in a webpack+react+express+mongo project? #67

Open
wwy2018 opened this issue Nov 18, 2016 · 1 comment

Comments

@wwy2018
Copy link

wwy2018 commented Nov 18, 2016

hi, i am building a webpack+react+express+mongo project. but i stuck with how to upload image into the project. i use mongo and mongoose for database and it works ok. but the image just couldn't be uploaded into my project. nice if you can help, thank you a lot!

@ngoctranfire
Copy link

Hey, so I believe that you should never store actual images in your database. What I would actually do is setup an image server, like an Amazon S3 cloud storage server, or like a Firebase Storage server through Google, in which you can upload images/videos/ or files to that server. Your database would then hold a reference to those images/videos/files as a a URL that can access those files with a special token or such.

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