Upload a zip using a form and extract if afterwards on srv?


#1

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


#2

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:


#3

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
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


Thomas F.
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


#4

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

ed


#5

Ed Hickey wrote:

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

ed

Very useful, thanks a lot! :slight_smile:


#6

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