ixcese Posted September 13, 2011 Share Posted September 13, 2011 hello , When i upload image on imageshack it let me select only image type file to upload but on my website when i upload image it let me select all type of files how can i do just like imagehack ? thanks. Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted September 13, 2011 Share Posted September 13, 2011 depends on your server side lanquage, but it's nothing to do with HTML, your looking for PHP/ASP/AJAX assistance Quote Link to comment Share on other sites More sharing options...
ixcese Posted September 13, 2011 Author Share Posted September 13, 2011 ok but still , how to get it done? what is it called? what to search? Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted September 13, 2011 Share Posted September 13, 2011 again - depends on the server side language, in PHP it is the file() function that you would be looking at for example. Quote Link to comment Share on other sites More sharing options...
ManiacDan Posted September 13, 2011 Share Posted September 13, 2011 Imageshack lets me upload anything I like, then it's checked AFTER the upload completes. You'll have to scan the file's headers afterward to decide which files are allowed and which are not. Since you've posted to a PHP message board, I'm assuming you run PHP. This document (warning - PDF) explains how to secure file uploads. -Dan 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.