Uploading and Extracting Compressed files
Posted: Wed Mar 09, 2005 9:37 pm
Hi,
I am writing a gallery application, and rather than just giving the user the abbility to upload images individually, or x number at a time, I would like to give them the ability to upload a compressed file, be it a zip, tar or gz'd tar file.
Once uploaded, I want the script to extract all the images and add them to the gallery as if they had been uploaded individually.
Anyone go any suggestions, I know that I can use the command line programs for these file types and do it that way, but I am wonder if:
a) there is an easier way
b) what the easiest way of distingiushing between the diffrent compressed file types is.
I am writing a gallery application, and rather than just giving the user the abbility to upload images individually, or x number at a time, I would like to give them the ability to upload a compressed file, be it a zip, tar or gz'd tar file.
Once uploaded, I want the script to extract all the images and add them to the gallery as if they had been uploaded individually.
Anyone go any suggestions, I know that I can use the command line programs for these file types and do it that way, but I am wonder if:
a) there is an easier way
b) what the easiest way of distingiushing between the diffrent compressed file types is.