1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Txt files not attach

Discussion in 'Resolved Bug Reports' started by mizter1nho, Jul 29, 2010.

  1. mizter1nho

    mizter1nho Well-Known Member

    Select file...
    P.S Hello from Russia :)
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I tested this using a couple of random txt files. I confirmed the problem on very short txt files. But it works when I add more content to the file. So this problem might be related to the length of the file.

    I started by testing "test.txt" which contained only the 4 character word, "test". It gave me an error when trying to upload that file. Then I added several more lines to the file and it worked.

    The "htaccess.txt" file worked fine.

    Also note that the attachment system allowed me to upload the same file twice (htaccess.txt). A duplicate check might be a good idea.

    Firefox 3.6.8
    Mac OS X 10.6.4
     

    Attached Files:

  3. Mike

    Mike XenForo Developer Staff Member

    And yes, we're aware of the lack of a thumbnail (actually, we just need a "this doesn't have a thumbnail" thumbnail).
     
  4. Enigma

    Enigma Well-Known Member

    Read the contents of the file and use GD to create a thumbnail representing the top left corner of file when viewing it in a text editor. :D I was just kidding, but now that I think about it, I'm kinda halfway serious. Could be a nice touch.
     
  5. Floris

    Floris Guest

    Or a nice icon that is 'we dont have that', with an icon in front of it, so you can visually see it's .txt or .zip.
    That will look smexy.
     
  6. Mike

    Mike XenForo Developer Staff Member

    Weird. Looks like getimagesize() throws a notice/warning if the file is too small. Fixed locally now.
     

Share This Page