Announcement

Collapse
No announcement yet.

Upload of file failed.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Upload of file failed.

    I'm getting the Upload of file failed error message after moving my site to a new server. I checked the allowed file size for the file type, group and user, everything looks good but no matter what file type I try to upload I et the same error.

    Any ideas?


    Close this window Manage Attachments Upload Errors20100106WeeklyCrimeBulletin.pdf:
    Upload of file failed.
    Upload File from your Computer
    Upload File from a URL
    Uploading File(s) - Please Wait
    Attachment Key FiletypeMax FilesizeMax WidthMax Height bmp19.5 KB620280

  • #2
    Check your phpinfo to make sure file uploads are enabled. You want to see "file_uploads" = "On".

    Have you tested file uploads in the AdminCP?
    AdminCP -> Maintenance -> Diagnotsics -> Upload
    If you read it online, it must be true.

    Comment


    • #3
      This is what I get when I run the diagnostics:


      Help
      Pertinent PHP Settings file_uploads:Onopen_basedir:Nonesafe_mode:Offupload_tmp_dir:Noneupload_max_filesize:2.00 MB

      Comment


      • #4
        What was the result?
        Did it say this or something else:
        No errors occurred while opening the uploaded file for reading.
        If you read it online, it must be true.

        Comment


        • #5
          It said:

          "No errors occured while opening the uploaded file for reading."

          This is a new server and I'm using Windows/IIS, Am I missing something to change here?

          Comment


          • #6
            what is the error exactly?

            Comment


            • #7
              When I try to upload the file the program only gives me the error message "Upload of file failed" and when I go to the maintenance --> diagnostic --> Upload I get:

              file_uploads: On
              open_basedir: None
              safe_mode: Off
              upload_tmp_dir: None
              upload_max_filesize: 2.00 MB

              Comment


              • #8
                How big is the file?

                Comment


                • #9
                  Defenitely below the max allowed 377KB

                  Comment


                  • #10
                    Please start yoour own thread with all of your own details.

                    Comment


                    • #11
                      Make sure you have a temp directory set and it has appropriate permissions for the IUSR account. That's what solved my issue. Hope this helps.

                      Comment

                      Related Topics

                      Collapse

                      Working...
                      X