Announcement

Collapse
No announcement yet.

Attachment feature not working

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

  • Attachment feature not working

    Is there some trick to getting the attachment feature to work on a Win2K server? Neither the link or the file is being displayed on the post.
    Regards - John
    Customer info in profile

  • #2
    Check your upload_tmp_dir setting in php.ini and set it to c:/temp/

    Comment


    • #3
      It's currently set as follows and the directory is valid.

      ;;;;;;;;;;;;;;;;
      ; File Uploads ;
      ;;;;;;;;;;;;;;;;
      file_uploads = On ; Whether to allow HTTP file uploads
      upload_tmp_dir = C:\PHP\uploadtemp ; temporary directory for HTTP uploaded files (will use system default if not specified)
      upload_max_filesize = 2M ; Maximum allowed size for uploaded files

      I don't get an error or anything but the attachment does not display. There is the little paperclip icon on the thread list but that's it.

      Will changing the directory make a difference?
      Regards - John
      Customer info in profile

      Comment


      • #4
        Change C:\PHP\uploadtemp to C:/PHP/uploadtemp

        Comment


        • #5
          Are you supposed to use forward slashes on a Win2K server?
          Regards - John
          Customer info in profile

          Comment


          • #6
            C:/PHP/uploadtemp/

            exactly as it is written above.

            Comment


            • #7
              I made that change and it is still not working.

              Here is the forum http://www.reefcentral.com/vb2test/

              Username guest
              Password guest
              Regards - John
              Customer info in profile

              Comment


              • #8
                Have exactly the same problem

                I have exactly the same problem? I see attachment icon on overview yet no file or link for images

                Win NT, version 2.0.0 final

                Tried many variation in php.ini (also safe_mode on and off)

                Note: avatars don't work either (same upload procedure I guess)

                Very interested in solution
                David

                Comment


                • #9
                  in functions.php
                  find
                  Code:
                  function acceptupload($moderate=0) {
                  now in this function replace as required below

                  Code:
                    global $attachextensions,$maxattachsize,$bbuserinfo,$maxattachwidth, $maxattachheight;
                    global $safeupload,$tmppath, $allowduplicates;
                  
                    $attachment_name = strtolower($attachment_name);
                    $extension=getextension($attachment_name);
                  $attachment=str_replace("C:WINDOWSTEMP","C:\\WINDOWS\\TEMP\\",$attachment);
                  
                    if (strpos("  $attachextensions  "," $extension ")==0) {
                      // invalid extension
                      eval("standarderror(\"".gettemplate("error_attachbadtype")."\");");
                      exit;
                    }

                  Comment


                  • #10
                    Did everyone else have to make that change? Doesn't seem like that's the case.
                    Regards - John
                    Customer info in profile

                    Comment


                    • #11
                      It seems like all of the people having trouble getting attachments to upload are using Win2K servers. If someone using a Win2K server has this feature working, could you please post here?
                      Regards - John
                      Customer info in profile

                      Comment


                      • #12
                        hi there!

                        i'm having the same problem


                        .. but in my case - not even the icon is showing up. it does upload the file and it says that there is an attachment - but no icon



                        - Yes, it's the final release
                        - No, it's not a w2k server -> w98


                        take a look here http://demo8.essernet.de/vbbforum/index.php

                        i tried editing the functions.php and tried uploading a .txt and .gif .. but no - not working



                        can someone help me out please ?



                        thanks in advance
                        dicsco stew
                        B,S&T



                        btw: i uploaded phptest.php .. this could help huh ?
                        phptest.php
                        Last edited by disco stew; Sat 2 Jun '01, 9:21am.

                        Comment


                        • #13
                          I am having some problems, I am on a Win2k server running IIS. Check out this thread.
                          ...

                          Comment

                          Related Topics

                          Collapse

                          Working...
                          X