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

Joshua M. 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? :frowning:

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 M.:

Have a nice weekend,
Joshua

Nobody got any idea? :frowning:


Posted via http://www.ruby-forum.com/.


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Thomas F.
wollzelle

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

this might be of use:
http://martin.ankerl.org/2006/08/11/program-e-extract-any-archive/

ed

Ed Hickey wrote:

this might be of use:
Fun, A Baby Sprinkle Invitation Away | My Day In A Few WordsAnkerl.org | My Day In A Few Words

ed

Very useful, thanks a lot! :slight_smile:

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