mesh2005 Posted February 5, 2007 Share Posted February 5, 2007 How to prevent certain filetypes from being uploaded? Link to comment https://forums.phpfreaks.com/topic/37164-how-to-prevent-certain-filetypes-from-being-uploaded/ Share on other sites More sharing options...
fenway Posted February 5, 2007 Share Posted February 5, 2007 I guess you could check the extension of the .value of the file input... Link to comment https://forums.phpfreaks.com/topic/37164-how-to-prevent-certain-filetypes-from-being-uploaded/#findComment-177538 Share on other sites More sharing options...
Jtech Posted February 5, 2007 Share Posted February 5, 2007 if it was me i would do this with php , its more relyable ... and this it how u do it $HTTP_POST_FILES['upload_file']['type'] !="image/bmp" that will prevent the upload of bmp's Link to comment https://forums.phpfreaks.com/topic/37164-how-to-prevent-certain-filetypes-from-being-uploaded/#findComment-177539 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.