WordPress.org

Ready to get started?Download WordPress

Forums

WP-Filebase Download Manager
Bug: Thumbnail is deleted on edit (2 posts)

  1. Tom Auger
    Member
    Posted 1 year ago #

    Upon re-edit of an attachment record, the thumbnail link breaks upon submit.

    Follow these steps:

    1. Create a new record
    2. File URL > Redirect to download > Don't scan
    3. Upload a thumbnail image
    4. Fill in additional fields at will
    5. Save
    6. From the File list, re-edit this file
    7. Change a field (leave the Thumbnail alone!) eg: change the Category
    8. Update
    9. Examine the file record - the thumbnail is displaying the generic icon
    10. Edit the file record - the thumbnail file name is listed (eg: thumb_PrePost-Formula-100x55.jpg) but the thumb being displayed is the generic one.

    Workaround:
    11. Re-upload the thumbnail image again
    12. Update to save your changes.
    13. The correct thumbnail is being displayed.

    http://wordpress.org/extend/plugins/wp-filebase/

  2. cycas
    Member
    Posted 1 year ago #

    I just came here to report the same thing.

    I don't see this behaviour if I only change the file category or edit any other field.

    I only see it if I upload a new version of the file - then I lose the custom thumbnail. (It is convenient to reupload to correct a typo or something, rather than copy and paste all my custom fields to make a new record)

    It looks to me as though the contents of the file_thumbnail field is dropped, and the thumbnail file is deleted when a new main file is uploaded. Presumably it should just be the main file and filename that is dropped, not the custom thumbnail file and filename as well.

    You can, as Tom says, re-upload a new thumbnail, but it's a bit annoying to have to do this every time you need to make a tiny change to a file, so it would be nice if the plugin could retain the thumbnail when a new file is uploaded.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags