Joshua Muheim
2006-Apr-01 12:23 UTC
[Rails] Upload a zip using a form and extract if afterwards on srv?
Hi all It like my visitors to be able to upload a zip file (or any other possible compressed file archive) to my server. After upload, my web app should extract the content to the server and delete the zip file. Is this possible somehow? I''m very thankful for help. Have a nice weekend, Joshua -- Posted via http://www.ruby-forum.com/.
Joshua Muheim
2006-Aug-17 06:43 UTC
[Rails] Re: Upload a zip using a form and extract if afterwards on s
Joshua Muheim wrote:> Hi all > > It like my visitors to be able to upload a zip file (or any other > possible compressed file archive) to my server. After upload, my web app > should extract the content to the server and delete the zip file. > > Is this possible somehow? I''m very thankful for help. > > Have a nice weekend, > JoshuaNobody got any idea? :-( -- Posted via http://www.ruby-forum.com/.
Thomas Fuchs
2006-Aug-17 11:11 UTC
[Rails] Re: Upload a zip using a form and extract if afterwards on s
google for rubyzip, or use a native tool with a cli. you can easy call command line tools in ruby with %x(your commands) and by various other means. -Thomas Am 17.08.2006 um 08:43 schrieb Joshua Muheim:> Joshua Muheim wrote: >> Hi all >> >> It like my visitors to be able to upload a zip file (or any other >> possible compressed file archive) to my server. After upload, my >> web app >> should extract the content to the server and delete the zip file. >> >> Is this possible somehow? I''m very thankful for help. >> >> Have a nice weekend, >> Joshua > > Nobody got any idea? :-( > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-- Thomas Fuchs wollzelle http://www.wollzelle.com questentier on AIM madrobby on irc.freenode.net http://www.fluxiom.com :: online digital asset management http://script.aculo.us :: Web 2.0 JavaScript http://mir.aculo.us :: Where no web developer has gone before
Martin DeMello
2006-Aug-17 11:27 UTC
[Rails] Re: Upload a zip using a form and extract if afterwards on s
Also, I''d recommend setting up backgroundrb to actually do the unzipping, since doing it via system will block your rails app till it finishes, and forking it off will drop your database connection. martin On 8/17/06, Thomas Fuchs <t.fuchs@wollzelle.com> wrote:> google for rubyzip, or use a native tool with a cli. > > you can easy call command line tools in ruby with %x(your commands) > and by various other means. > > -Thomas > > Am 17.08.2006 um 08:43 schrieb Joshua Muheim: > > > Joshua Muheim wrote: > >> Hi all > >> > >> It like my visitors to be able to upload a zip file (or any other > >> possible compressed file archive) to my server. After upload, my > >> web app > >> should extract the content to the server and delete the zip file. > >> > >> Is this possible somehow? I''m very thankful for help. > >> > >> Have a nice weekend, > >> Joshua > > > > Nobody got any idea? :-( > > > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > -- > Thomas Fuchs > wollzelle > > http://www.wollzelle.com > > questentier on AIM > madrobby on irc.freenode.net > > http://www.fluxiom.com :: online digital asset management > http://script.aculo.us :: Web 2.0 JavaScript > http://mir.aculo.us :: Where no web developer has gone before > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Ed Hickey
2006-Aug-17 17:55 UTC
[Rails] Re: Upload a zip using a form and extract if afterwards on s
this might be of use: http://martin.ankerl.org/2006/08/11/program-e-extract-any-archive/ ed On 8/17/06, Martin DeMello <martindemello@gmail.com> wrote:> > Also, I''d recommend setting up backgroundrb to actually do the > unzipping, since doing it via system will block your rails app till it > finishes, and forking it off will drop your database connection. > > martin > > On 8/17/06, Thomas Fuchs <t.fuchs@wollzelle.com> wrote: > > google for rubyzip, or use a native tool with a cli. > > > > you can easy call command line tools in ruby with %x(your commands) > > and by various other means. > > > > -Thomas > > > > Am 17.08.2006 um 08:43 schrieb Joshua Muheim: > > > > > Joshua Muheim wrote: > > >> Hi all > > >> > > >> It like my visitors to be able to upload a zip file (or any other > > >> possible compressed file archive) to my server. After upload, my > > >> web app > > >> should extract the content to the server and delete the zip file. > > >> > > >> Is this possible somehow? I''m very thankful for help. > > >> > > >> Have a nice weekend, > > >> Joshua > > > > > > Nobody got any idea? :-( > > > > > > -- > > > Posted via http://www.ruby-forum.com/. > > > _______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -- > > Thomas Fuchs > > wollzelle > > > > http://www.wollzelle.com > > > > questentier on AIM > > madrobby on irc.freenode.net > > > > http://www.fluxiom.com :: online digital asset management > > http://script.aculo.us :: Web 2.0 JavaScript > > http://mir.aculo.us :: Where no web developer has gone before > > > > > > > > > > _______________________________________________ > > 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060817/1f28d020/attachment.html
Joshua Muheim
2006-Aug-17 18:01 UTC
[Rails] Re: Re: Upload a zip using a form and extract if afterwards
Ed Hickey wrote:> this might be of use: > http://martin.ankerl.org/2006/08/11/program-e-extract-any-archive/ > > edVery useful, thanks a lot! :-) -- Posted via http://www.ruby-forum.com/.