Attachments: Upload of file failed (solved)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • timelord726
    Member
    • Mar 2005
    • 78
    • 3.6.x

    Attachments: Upload of file failed (solved)

    I recently switched web hosts, and I'm not entirely sure when this problem started but it may be related to the move.

    Whenever I attempt to upload a file, it takes several seconds as though the upload is working, then presents me with "Filename: Upload of file failed."

    It doesn't seem to matter where I post it or what I upload, I see that message every time regardless.

    What can I check?

    EDIT: The upload diagnostic gives me this.



    EDIT 2: Argh. Based on the result of the diagnostic it seems to be file size related. I'm going to have to talk to my host about it.

    Never mind, thanks for reading anyway.
  • glennybee
    Senior Member
    • Feb 2008
    • 1005
    • 3.7.x

    #2
    If it's a shared host then you will need to contact the host regarding these options.

    In the php.ini file, check for the following:
    Code:
    ;;;;;;;;;;;;;;;;
    ; File Uploads ;
    ;;;;;;;;;;;;;;;;
    
    ; Whether to allow HTTP file uploads.
    file_uploads = On
    
    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ;upload_tmp_dir =
    
    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 2M
    Also, if you are attaching the file to a post, you will need to make this value the same as the max upload size.

    Code:
    ; Maximum size of POST data that PHP will accept.
    post_max_size = 8M

    Comment

    • timelord726
      Member
      • Mar 2005
      • 78
      • 3.6.x

      #3
      Thank you! This was a host problem and they were kind enough to sort it for me.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...