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.

File upload issues

September 09, 2012 7:41pm

Subscribe [2]
  • #1 / Sep 09, 2012 7:41pm

    Chromatic Color

    41 posts

    I cannot get any files to upload to a folder. get the following error.

    The filetype you are attempting to upload is not allowed.

    tried pdf, jpg, png, txt no luck.

    check permissions, set to 777.

    Thoughts?

  • #2 / Sep 11, 2012 10:24am

    Shane Eckert

    7174 posts

    Hello Chromatic Color,

    Thank you for asking your question here in the ExpressionEngine forums.

    This is a strange error in that I have not seen the upload fail on a file type like a jpg or png.

    Even though the error is calling out file type, I would like to check a few things in general.

    1. Check the file upload destination and make sure the path is right. I know this is an obvious one, but it has snuck up on me a few times.
    2. Can you make sure that system/expressionengine/config/mimes.php is there. I know for sure that jpg and png are in there so it’s not that, but that message makes me thing that maybe the file is not there or readable.
    3. This would not throw this error, in fact it would throw a very specific error, but let’s check it anyway. 😊 Make sure your php settings allow for uploading medium to large files. I will put some information about that at the end.

    Please check those few things and let me know.


    memory_limit
    This sets the maximum amount of memory in bytes that a script is allowed to allocate.
    Default size 5.3 in is “8M”

    post_max_size (must be greater than upload_max_filesize)
    Sets max size of post data allowed. This setting also affects file upload.
    Default size in 5.3 is “128M”

    upload_max_filesize
    The maximum size of an uploaded file.

    max_execution_time
    This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser.
    Default setting in 5.3 is “30”


    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases