Page 1 of 1

Upload and extract..

Posted: Sun Nov 27, 2011 4:31 pm
by ashwood
How would i upload a zip or rar file and it automatically extract to a folder of my choice so that the rar or zip had been uploaded but i have the contents extracted else where if that makes sense..

thanks

Re: Upload and extract..

Posted: Sun Nov 27, 2011 5:16 pm
by jacek

Re: Upload and extract..

Posted: Sun Nov 27, 2011 5:30 pm
by ashwood
Is there any tutorials been done? I find it hard to work off code thats just bunshed up because you don't know what any of it mean. Tutorials explain therefore i learn :)

Re: Upload and extract..

Posted: Sun Nov 27, 2011 8:00 pm
by jacek
I haven’t done one, but it's not a new idea so you probably will find one.

Example #1 on this page http://php.net/manual/en/function.zipar ... ractto.php pretty much sums up the basics.

Re: Upload and extract..

Posted: Sun Nov 27, 2011 11:02 pm
by ashwood
im sure i will find something :) no chance you could do a tutorial on it though? It can't take that long can it surely? would be much appraciated :):)

Re: Upload and extract..

Posted: Mon Nov 28, 2011 12:30 am
by jacek
If you are making that an official suggestion I might ;)

Re: Upload and extract..

Posted: Mon Nov 28, 2011 1:04 am
by ashwood
Yes Yes i am :P please can you do a tutorial showing how to upload a zip/rar and it extracting to a folder of your choice but still keeping the zip/rar file on the server somewhere (of your choice)

my official suggestion (A)

please tell me if you can do it so i can watch out for it :D

Re: Upload and extract..

Posted: Mon Nov 28, 2011 7:08 pm
by jacek
I can do that, some time this week probably. It should be a pretty quick one.

Re: Upload and extract..

Posted: Tue Nov 29, 2011 8:35 pm
by ashwood
jacek wrote:I can do that, some time this week probably. It should be a pretty quick one.
cheers mate please link me up asap!! thanks

Re: Upload and extract..

Posted: Wed Nov 30, 2011 7:41 am
by EcazS
If you upload it and then it extracts wouldn't you have to wait a really long time? o_O

Re: Upload and extract..

Posted: Wed Nov 30, 2011 5:09 pm
by jacek
EcazS wrote:If you upload it and then it extracts wouldn't you have to wait a really long time? o_O
Possibly, it would be extracted while the "upload done" page was loading, to the user it would just be the same as the file taking a bit longer to upload.

Re: Upload and extract..

Posted: Thu Dec 01, 2011 8:37 am
by bowersbros
But with a powerful server like Jaceks, I imagine it wouldnt be that noticable.

Re: Upload and extract..

Posted: Thu Dec 01, 2011 6:15 pm
by EcazS
bowersbros wrote:But with a powerful server like Jaceks, I imagine it wouldnt be that noticable.
Unless someone uploads a 10GB file. Like a Blu-Ray 1080p Movie.... I hate how big they are, just FYI.

Re: Upload and extract..

Posted: Fri Dec 02, 2011 12:44 am
by jacek
Yeah a large file would take a lot longer, but it would also take longer to upload so they might not notice as much ?

Also, it would be pretty hard to actually accept a file upload of 10GB on even a average server.