lional Posted June 18, 2012 Share Posted June 18, 2012 Hi I would like to only be able to upload html files on a form. I know how to do images, pdf, doc etc. Just need to know how to do html files Thanks lional Quote Link to comment https://forums.phpfreaks.com/topic/264385-uploading-only-html-files/ Share on other sites More sharing options...
trq Posted June 18, 2012 Share Posted June 18, 2012 The logic is no different. Quote Link to comment https://forums.phpfreaks.com/topic/264385-uploading-only-html-files/#findComment-1354846 Share on other sites More sharing options...
lional Posted June 18, 2012 Author Share Posted June 18, 2012 I understand that but where I put in application/pdf for pdf, what do I put in for html Quote Link to comment https://forums.phpfreaks.com/topic/264385-uploading-only-html-files/#findComment-1354848 Share on other sites More sharing options...
cpd Posted June 18, 2012 Share Posted June 18, 2012 "text/html" is the correct mime type. If you ever want to know what the correct term - otherwise known as a mime type - is just search "mime types" in google. Quote Link to comment https://forums.phpfreaks.com/topic/264385-uploading-only-html-files/#findComment-1354876 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.