No announcement yet.

Attachments: Upload of file failed (solved)

  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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:
    ; 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.

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


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


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