So I'll try to be as specific as possible.
I'm building a website and I'd like to implement a upload for users to upload images as an avatar or a screenshot in their comment. I'm still quite a beginner (coding for 7 weeks) and I'm writing this website using BackboneJS and Ruby on Rails. I think I need just a form and an input tag within the HTML template that allows users to select a picture from their local system to my application. My question is, once I parse the data (assuming I parse it because Ive been parsing all data into JSON).
Where does it go?
I have read that its bad to store the image into my postgreSQL database.
But where else would it go in the back-end?
Is my application just going to download what they upload and keep it in a folder that is assigned to each specific user?
If anybody could explain it at a pretty basic level, I would appreciate it. Thanks!