mesh2005 Posted February 5, 2007 Share Posted February 5, 2007 How to prevent certain filetypes from being uploaded? Quote Link to comment 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... Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.