Click to See Complete Forum and Search --> : Uploaded files filter


alon
06-05-2005, 03:47 PM
Is there a way to filter the permitted files for upload in Web Application ? e.g: I want to allow uploading of Jpg and Giff files only. How do I do it ?
I know it's possible in Windows Apps, but can I do it in Web Apps as well ?

Thanks,
ALON

Cstick
06-11-2005, 08:39 AM
Use system.io.path.getextension("filepath") to get the extension and use an if clause to let them through. It will return something like ".gif", ".jpg", etc.