Hiya,
I am using code igniters file upload class to add jpgs, gifs and pngs to my site cms. I have follwed the tutorial set out in the user guide http://ellislab.com/codeigniter/user-guide/libraries/file_uploading.html)]here[/url] to the letter and I am getting the error message that the file type I have chosen is not allowed even though it clearly should be.
I have tested this on another computer and got it working fine, however when uploaded to the server it does not work. The only thing I have done differently is that I am using a .htaccess file to remove the ‘index.php’ from my URI.
This is my .htaccess code which I got from the codeigniter wiki and which works fine
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>Has anyone had this problem as well or if anyone can suggest a solution it would be greatly appreciated.
Thanks