file uploader class issues |
[eluser]llbbl[/eluser]
I'm sorry Randy but I strongly disagree with the usefulness. If someone is going to attach the file as an email sent from the webserver (who does that? not very many ppl) than let the person doing the email application figure out what the mime type is. Make the function mimes_types() apart of the email class or make a new class to check the mime type. Leave it out of the Upload class. Besides last time I checked "Content-Type: multipart/mixed" worked awesome for email attachments. Who cares if you got the right type as long as it works right. We shouldn't be hampering ourselves and new developers with a gimped upload class. Here CI is great, try this awesome upload class that only works for 12 out of 10,000 different file extensions. If you think it should remain how it is, here is a link you can get to work. http://en.wikipedia.org/wiki/Alphabetica...extensions Until that is completed, is_allowed_filetype() needs to be modified to exclude the mime check! It will lead to a better quality framework! edit: can't remove mimes_types() completely because of the _prep_filename() function which helps security wise from disallowing script execution on files with two file extenions in the name like servercrasher.php.txt... or at least from what I can tell thats what it does |
Messages In This Thread |
file uploader class issues - by El Forum - 08-19-2008, 04:58 PM
file uploader class issues - by El Forum - 08-19-2008, 05:21 PM
file uploader class issues - by El Forum - 08-19-2008, 05:28 PM
file uploader class issues - by El Forum - 08-19-2008, 05:42 PM
file uploader class issues - by El Forum - 08-19-2008, 06:11 PM
file uploader class issues - by El Forum - 08-19-2008, 06:50 PM
file uploader class issues - by El Forum - 08-19-2008, 07:29 PM
file uploader class issues - by El Forum - 08-19-2008, 07:51 PM
file uploader class issues - by El Forum - 08-20-2008, 11:02 AM
file uploader class issues - by El Forum - 08-20-2008, 11:23 AM
file uploader class issues - by El Forum - 08-20-2008, 11:57 AM
file uploader class issues - by El Forum - 08-20-2008, 12:59 PM
|