Zotero 7 Beta: Attachment Preview not updated in some cases
If I select an item with a PDF file attachment, it will correctly show the preview of the main attachment in the Attachments section.
If I switch to an item with an attachment that does not have a preview (djvu file for example), the preview in the Attachments section keeps showing the preview of the previous item.
If I switch to an item with an attachment that does not have a preview (djvu file for example), the preview in the Attachments section keeps showing the preview of the previous item.
My old .djvu files are identified as image type:
https://s3.amazonaws.com/zotero.org/images/forums/u265723/c158sjpngaybekckj1ip.png
Same icon as a .png file:
https://s3.amazonaws.com/zotero.org/images/forums/u265723/7j8xo93cv4m93w3yrdfv.png
But if I use the same file in a new item, it does not get identified as an image file anymore:
https://s3.amazonaws.com/zotero.org/images/forums/u265723/zgebmdwm53qwm86rftmq.png
Debug ID in Troubleshooting Mode for just clicking on the parent item of the old .djvu file, with the Attachment Preview activated: * "<" replaced by "^"
Debug ID: D1407091459
Same for doing this with the same file newly added to another item: the error does not appear:
Debug ID: D833793795
So it seems that the problem comes from the wrong type identification in older version?
Start from an item with a PDF file attachment:
https://s3.amazonaws.com/zotero.org/images/forums/u265723/044dsxoq6er90zil2rb3.png
Switch to the old .djvu file -> The Preview is not updated, still showing the one of the previous item:
https://s3.amazonaws.com/zotero.org/images/forums/u265723/efzuu0656s6si4wygk90.png
Click on its attachment:
https://s3.amazonaws.com/zotero.org/images/forums/u265723/lubhl9sn93vjfmoxqkvc.png
Switch to the newly added .djvu file -> It is fine now:
https://s3.amazonaws.com/zotero.org/images/forums/u265723/hzal4kxuxqh1luczqevv.png
Click on its attachment:
https://s3.amazonaws.com/zotero.org/images/forums/u265723/ys4bxzteuly4qo5bq02l.png