Have a file sharing site that allows only certain file types to be uploaded.
But i want to allow zip files that contain only certain file types - has anyone done this?
when the file is uploaded, check to see if the ext is ZIP by splitting the filename at the dot and getting the ubound value of the array.
If it is "ZIP" then use the component to unzip all the file and use the file scripting object to check their extensions - if any file fails the check, delete all files plus the zip and return an error to the user.
If everything passes, delete all the temp files, move the zip file to the location you want it to reside and return a success msg to the user.
Good luck!
--------
GOOGLE is a great resource to find answers to questions like "how do i..."
If you don't know exaclty what you want to do or what to search on, try Google Suggest:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.