Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Users Uploading Files to my Website - RUBY

I'm building a website like eBay, Amazon, Craigslist, etc

I was wondering how I can set up a system where users can upload images to my website.

How would the database look like? Are there any security issues, etc?

Serious Answers Only Guys.

1 Answer

Husein Kareem
PLUS
Husein Kareem
Courses Plus Student 2,507 Points

you would have to use a gem for users to upload images. some gems i have used before: Paperclip Carrierwave

both are great gems (I prefer carrier wave)

not sure what you mean by how the database will look like?

security issues always with anything but as long as you have validations and correct user gems for authentication and authorization you should be fine.

good luck with your website we REALLY need someone to replace eBay (hate them!).

Thanks, I think I have a better understanding of how to go on about this. In terms of replacing eBay, I don't think that's going to happen, although I have high expectations for my site it is very very different from eBay.