[eluser]tomexsans[/eluser]
Hello,
Thank you for this opportunity now my hair is starting to grow, because for two days I've been pulling it all out, What's the problem with this file_upload class , I've already allowed the types on my config
Code:
$config['allowed_types'] = 'doc|txt|jpg';
but only jpg seems to upload on my server, it was all fine on the local host but when on the online server it does not allow the config types i allowed.
i tried and researched all of possible solution but failed, until i found out one thing, that
some (not all) MIME TYPES differ from every
server and
browser, so before uploading check first the mime type of the file you want to allow.
for example on my local server
docx has a mime type of
Code:
application/vnd.openxmlformats-officedocument.wordprocessingml.document
while on my server online the mime type is
just check on the mime types associated with the files then add it to your
application/config/mimes.php maybe it's one of those problems you encounter
just a heads up.