ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

image upload - file type not allowed

October 04, 2007 4:16pm

Subscribe [1]
  • #1 / Oct 04, 2007 4:16pm

    disretrospect

    1 posts

    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

  • #2 / Oct 04, 2007 4:53pm

    Lisa Wess

    20502 posts

    Howdy, if you are seeking assistance with CodeIgniter, then please head over to our CodeIgniter forums and post there; that way you will get focused assistance with your application.

    Thank you!

  • #3 / Oct 04, 2007 7:52pm

    disretrospect

    1 posts

    😛 U both look so alike, apologies. thanks for the heads up!

    If anyone reads this and can help I have posted in the right place now at http://ellislab.com/forums/viewthread/62176/

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases