For a while i''ve been storing image in my PHP apps in the filesystem, but with the potential for a Rails project coming up i thought it was time for a review :0) In everyone''s experience, is it best to store uploaded images in the db or just stick them on the filesystem with a reference in the db? I''ve seen various performance tests and security arguments for and against each method so it''s difficult to know what''s best. Does anyone know which method Flickr use? I''m assuming whatever they''re doing would be a good place to start :0) Cheers, Steve
Check the message archives for the pros vs. cons on this using Rails - it comes up for discussion here every few weeks, and you might find that everything has already been said that you''ll be interested in. Regards Dave M. On 24/04/06, Stephen Bartholomew <sb@2404.co.uk> wrote:> For a while i''ve been storing image in my PHP apps in the filesystem, > but with the potential for a Rails project coming up i thought it was > time for a review :0) > > In everyone''s experience, is it best to store uploaded images in the db > or just stick them on the filesystem with a reference in the db? > > I''ve seen various performance tests and security arguments for and > against each method so it''s difficult to know what''s best. > > Does anyone know which method Flickr use? I''m assuming whatever they''re > doing would be a good place to start :0) > > Cheers, > > Steve > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Probably should have done that before posting :0) Cheers, Steve David Mitchell wrote:> Check the message archives for the pros vs. cons on this using Rails - > it comes up for discussion here every few weeks, and you might find > that everything has already been said that you''ll be interested in. > > Regards > > Dave M. > > On 24/04/06, Stephen Bartholomew <sb@2404.co.uk> wrote: > >>For a while i''ve been storing image in my PHP apps in the filesystem, >>but with the potential for a Rails project coming up i thought it was >>time for a review :0) >> >>In everyone''s experience, is it best to store uploaded images in the db >>or just stick them on the filesystem with a reference in the db? >> >>I''ve seen various performance tests and security arguments for and >>against each method so it''s difficult to know what''s best. >> >>Does anyone know which method Flickr use? I''m assuming whatever they''re >>doing would be a good place to start :0) >> >>Cheers, >> >>Steve >> >>_______________________________________________ >>Rails mailing list >>Rails@lists.rubyonrails.org >>http://lists.rubyonrails.org/mailman/listinfo/rails >> > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
I think...its always better to store images in file system...if the images can be large and can have several versions..... last argument is...because suppose you use RMagick to modify the image and store it under some other name/dir.... for all these cases file system is better.... On 4/24/06, Stephen Bartholomew <sb@2404.co.uk> wrote:> > Probably should have done that before posting :0) > > Cheers, > > Steve > > > David Mitchell wrote: > > Check the message archives for the pros vs. cons on this using Rails - > > it comes up for discussion here every few weeks, and you might find > > that everything has already been said that you''ll be interested in. > > > > Regards > > > > Dave M. > > > > On 24/04/06, Stephen Bartholomew <sb@2404.co.uk> wrote: > > > >>For a while i''ve been storing image in my PHP apps in the filesystem, > >>but with the potential for a Rails project coming up i thought it was > >>time for a review :0) > >> > >>In everyone''s experience, is it best to store uploaded images in the db > >>or just stick them on the filesystem with a reference in the db? > >> > >>I''ve seen various performance tests and security arguments for and > >>against each method so it''s difficult to know what''s best. > >> > >>Does anyone know which method Flickr use? I''m assuming whatever they''re > >>doing would be a good place to start :0) > >> > >>Cheers, > >> > >>Steve > >> > >>_______________________________________________ > >>Rails mailing list > >>Rails@lists.rubyonrails.org > >>http://lists.rubyonrails.org/mailman/listinfo/rails > >> > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- nothing much to talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060424/3543b2df/attachment.html