Attachment Upload fails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Exeter
    New Member
    • Mar 2009
    • 24

    Attachment Upload fails

    I have a new install of vBulletin on my dev machine:
    Vista64, IIS

    Whenever I try to upload an attachment in a post, I get the following message:
    "Upload of file failed."
    This message appears in the upload dialog.

    1) How can I fix this problem?

    2) How do I diagnose errors like this in general? Where are the log files I should be looking for? I think I configured vbulleting properly, but I cannot find any .log files?

    Thanks for your help
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    What does it say when you use the file upload diagnostic under Maintenance -> Diagnostics?
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • Exeter
      New Member
      • Mar 2009
      • 24

      #3
      file_uploads: On
      open_basedir: None
      safe_mode: Off
      upload_tmp_dir: C:\Windows\Temp
      upload_max_filesize: 2.00 MB

      No errors occurred while opening the uploaded file for reading.



      It would help if you can tell me how to turn diagnostics on, or how to attach a debugger.

      Thanks





      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        You need to make sure that the C:\Windows\Temp directory exists (capitalization and all) and that it is world-readable and writable.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • Exeter
          New Member
          • Mar 2009
          • 24

          #5
          The directory was wide open to begin with. The error remains.

          How can I get to the error logs?

          Comment

          • Steve Machol
            Former Customer Support Manager
            • Jul 2000
            • 154488

            #6
            I have no idea where your server error logs are. But in my experience an "Upload of file failed" error on a Windows server has always been due to a misconfigured upload_tmp_dir.

            Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
            Change CKEditor Colors to Match Style (for 4.1.4 and above)

            Steve Machol Photography


            Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


            Comment

            • Exeter
              New Member
              • Mar 2009
              • 24

              #7
              Does anyone know how I can debug this?
              Right now I can't even see the IO requests.

              Besdies a solution, what's the vbulletin upload process?
              It appears the pictures go into a folder first.

              Also, the diagnostics feature is not very usful in this case. It returns a false positive.

              Thanks

              Comment

              • Steve Machol
                Former Customer Support Manager
                • Jul 2000
                • 154488

                #8
                The process is that the server first uploads the file to a temp directory - the upload_tmp-dir in fact - and after that it is moved to either the database or the file system depending on your settings. That error happens at the first step - uploading the the temp directory.
                Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                Change CKEditor Colors to Match Style (for 4.1.4 and above)

                Steve Machol Photography


                Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                Comment

                • Exeter
                  New Member
                  • Mar 2009
                  • 24

                  #9
                  I figured it out.

                  For some reason windows does not let php access c:\windows\tmp
                  even if the IIS_IUSRS has full permissions.

                  I picked some other direcotry not in the c:\Windows and everything started working.

                  Thanks everyone who helped out. You made me find this faster.

                  Comment

                  • Steve Machol
                    Former Customer Support Manager
                    • Jul 2000
                    • 154488

                    #10
                    Good to hear.
                    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                    Change CKEditor Colors to Match Style (for 4.1.4 and above)

                    Steve Machol Photography


                    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                    Comment

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