Hi everyone, I am working on a Rails application with photo upload capablility and I need to add some bulk ulpoad tool. I decided for using a zip file with JPEG pictures inside. The zip would be uploaded, then extracted into some temp directory with the help of rubyzip extension. Then all the photo files should be copied into their final places in the file system. I am interested in your opinions/experiences/code. Has someone created something like this before? I''d appreciate any answer. Best regards, Marcin Bajer
if you''re requiring having to upload several files on a regular basis, i might invest some time into developing a desktop app that ties into a web service rather than require the user to have to zip up multiple files and then upload that single file. i think Dropsend does it this way. you could also try something similar to what gmail does with their attachments, but if you''re sending several, again, this could get tedious from the user''s point of view. i''m not saying any one way is better than another, just suggesting alternatives. Chris On 3/16/06, Marcin Bajer <bajer@tigana.pl> wrote:> > Hi everyone, > > I am working on a Rails application with photo upload > capablility and I need to add some bulk ulpoad tool. > > I decided for using a zip file with JPEG pictures inside. > The zip would be uploaded, then extracted into some temp > directory with the help of rubyzip extension. Then all the > photo files should be copied into their final places in the > file system. > > I am interested in your opinions/experiences/code. > Has someone created something like this before? > I''d appreciate any answer. > > Best regards, > Marcin Bajer > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060316/530580c4/attachment.html
> if you''re requiring having to upload several files on a regular basis, i > might invest some time into developing a desktop app that ties into a web > service rather than require the user to have to zip up multiple files and > then upload that single file. i think Dropsend does it this way.Thanks for this suggestion - it looks interesting and has some advantages. This external app could take care of adding titles/description to pictures. If I only get a zip file with - say - 30 pictures then I need to be able to add titles to all of them via some web form.> you could also try something similar to what gmail does with their > attachments, but if you''re sending several, again, this could get tedious > from the user''s point of view.I guess you mean starting with one file on the upload form and then adding more with JavaScript. This might work for up to a dozen files quite well actually. I wonder what will be the average number of files sent in one session. If below ten, then this solution might be good enough, but if it''s higher, then it becomes- as you say - too tedious.> i''m not saying any one way is better than another, just suggesting > alternatives.Thank you very much Best regards, Marcin