Announcement

Collapse
No announcement yet.

Attachments

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

  • Attachments

    Hi Everyone,

    I have checked the options, and set them up correctly, but when you add an attachment to a message it does not show up as a link ...

    Anyone have any ideas please...

  • #2
    http://www.vbulletin.com/forum/showt...threadid=16391
    Off-Road Forum

    Comment


    • #3
      Attachments

      Hi dunefreak

      sorry that information was not of any help...

      Comment


      • #4
        attachments

        Hi Everyone,

        If you are following this thread, a user can upload an attachment, it ends up in the directory, but it does not display in the thread, heres the twist, DOES NOT PUT ANY DATA IN THE MYSQL DATABASE..

        Comment


        • #5
          Got the same issue, I just upgraded our production board to RC3 and attachments don't work at all.
          Here's my PHP Info:
          http://www.cncboa.de/phpinfo.php
          running on MySQL 3.23.33

          It's not really urgent but would be nice to get it workin'

          Comment


          • #6
            If you change your upload_max_filesize to be defined in bytes (not megabytes, like 2M), you won't have the problem.

            If you can't change that, put the value of your upload_max_filesize IN BYTES in your newpost_attachment template's MAX_FILE_SIZE hidden <input>.

            Comment


            • #7
              Ed, thx

              but let's assume you're talking to an idiot

              Here's a snippet out of the template you mentioned:
              Code:
              <input type="hidden" name="MAX_FILE_SIZE" value="$maxattachsize_temp">
              	<input type="file" class="bginput" name="attachment">
              What would I have to do?
              Change it to this:
              Code:
              <input type="hidden" name="MAX_FILE_SIZE" value="102400">
              	<input type="file" class="bginput" name="attachment">
              [edited]
              Ok, figured it out, works like this, thx a lot again
              [/edited]
              Last edited by Sven; Wed 16th May '01, 12:37am.

              Comment


              • #8
                Attachments

                Hi Sven,

                Did it work, if so can you explain what you did and where you did it please..

                Comment


                • #9
                  Edit newpost_attachment template and look for what's in the first code snippet in my above posting. Replace it with the content of the second code snippet, that's all

                  You may want to change the max filesize to whatever you want (as long as it doesn't exceed the setting of your host's php.ini MAX_FILE_SIZE setting) - but you should change the max. file size option in the Control Panel also so the description fits the actual max. filesize.

                  Comment


                  • #10
                    Attachments

                    Hi Sven,

                    Thanks for the description, it now works....and thanks to Ed...

                    Comment


                    • #11
                      PDF&#039;s

                      Hi,
                      I am making some adjustments to VB 2.0RC2 for a friend of mine, I ran into a problem where PDF's were attached to the forum, but clicking on them resulted in an error in either NS or IE,
                      I have fixed this problem by editing the code on the bottom of

                      attachment.php where it sets the proper headers,

                      elseif ($extension=="pdf") {
                      header("Content-type: application/pdf");
                      } else {
                      header("Content-type: unknown/unknown");
                      }

                      I was wondering if there will be a option to set mime-types in the database itself .

                      Comment

                      Loading...
                      Working...
                      X