Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

attachment icon not being displayed

2»

Comments

  • actually, I'm not sure the thumbs are there. Maybe just the full size images. I'm looking into it....

  • sorry, i was looking in the wrong place. The thumbs are here: www.djangobooks.com/forum/uploads/thumbnails/FileUpload

  • Yes the full size images go inside the fileupload folder in the uploads However the thumbnails folder goes inside the uploads folder.

    This is the order

    uploads

    thumbnails

    FileUpload

    UserPics

    etc

  • @vrijvlinder ok, it seems to be where it should be and permissions are 755: www.djangobooks.com/forum/uploads/thumbnails/FileUpload

  • the thumbs are being created but not not viewable as a preview. They work fine once the post has been submitted.

  • can you click on a thumbnail and see the path? that could shed some light.

    Does it contain the thumbnails ? click on a file to see what is the url from the file manager in your server.

    Also check for having adblock enabled. That can do it to.

    When you look in the source for the file that is not showing, what is it's url and could you post it please.

  • the thumbs are being created but not not viewable as a preview.

    You mean when you attach files and show you the thumb before posting?

    Can you look into the source after you attach and inspect the element to see if it is even rendered ?

    At that point you should be able to see what the problem is. It may have opacity:0 added to it or something like that.

    If it displays a broken image icon or question mark placeholder it did not load in the browser. But it was created.

    Your problem is not huge since the thumbs are being created, just that you can't see them only in the preview.

    Please look at the source code immediately after attaching but before posting to see what it looks like.

  • I am starting to think this is a browser issue. Because unless you can see something wrong in the code as you upload an image for attachment , like opacity:0 or something strange added to the url, I can't imagine what could be wrong....

    if you could narrow down the circumstances ie Browser version of browser and device being used.

    That could help

  • peregrineperegrine MVP
    edited February 2014

    @meshugy said:

    the thumbs are being created but not not viewable as a preview.
    They work fine once the post has been submitted.

    I don't believe attachments have ever been clickable in preview.

    in chrome developer. does it show it trying to look for image but image is not found, in preview mode.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • @vrijvlinder said:
    You mean when you attach files and show you the thumb before posting?

    correct, it doesn't show the preview thumbs while you're creating the post. Once you submit the post the thumbs display.

    Can you look into the source after you attach and inspect the element to see if it is even rendered ?

    I'm not sure what to look for.

    If it displays a broken image icon or question mark placeholder it did not load in the browser. But it was created.

    this is what happens in IE. In Firefox no preview is displayed at all.

    I am starting to think this is a browser issue.

    I don't think so as the same thing happens in IE, Firefox, and Safari. All my users experience it as well.

    @peregrine said:
    I don't believe attachments have ever been clickable in preview.

    I'm not trying to click the thumbnails, I just expect them to display as preview thumbs. Just like on this forum, when you upload an attachment, a thumbnail is created and is veiwable with the "insert into to post" link. That is what is not working for me right now.

  • I have been looking into the issue and it must be related to browser and file types.

    There is no issue on the mac using safari, chrome , firefox, Opera. It could be a browser setting or a pc thing.

    Just google "thumbnails don't load in IE and Firefox" you will see what I mean.

    One question, does it happen with all file types ?

  • @vrijvlinder and @peregrine. I have related problem, my attached image does not show thumbnail though upload in the FileUpload folder inside upload but could not create a thumbnail copy in thumbnails/FileUpload though it creates an equiv. subfolder for it. I manually copied the image from the other file to the thumb folder, resized it and it worked. Any help?

  • peregrineperegrine MVP
    edited April 2014

    @vrijvlinder and @peregrine. I have related problem,

    If it were me I would start a new discussion listing your version of plugin and version of vanilla. Instead tagging on to a discussion with out all your details.

    Also if you have a question a bout a plugin , post your question under the plugin in question .

    should we guess the details, V likes that, I don't.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • @peregrine I use 2.0.18.11 and FileUploadDetect plugin. My prob is that thumbnail image is not created each time I upload unless I manually create a copy myself. Thanks.

  • Please go to the plugin's page and click ask a question so the discussion will be tagged with the plugin and the author will get notified and come help if possible.

Sign In or Register to comment.