OrchidTechnologies / orchid

Orchid: VPN, Personal Firewall
https://www.orchid.com/
GNU Affero General Public License v3.0
648 stars 103 forks source link

Bugs with duplicate dz-preview (field Orchid\Screen\Fields\Upload) and pictures in media #175

Closed GDogyGy closed 2 months ago

GDogyGy commented 2 months ago

Describe the bug When add field Upload to some element with {field: upload}->media() and turbo.cache = true this field duplicate dz-preview when back to page. And when i click to media picture duplicate with same hash file.

To Reproduce Steps to reproduce the behavior:

  1. Go to list element and add element with Upload::make('seoField.image_id') ->title(__('seo_field.admin.column.image'))->media() ->acceptedFiles('.jpg,.png,.jpeg')->maxFiles(1)
  2. Click on save and save another element with same picture
  3. Reload page and use turbo cache return to list page and again return to element. You see duplicate
  4. And other bug. Click to media in element page with field. Now file with same hash sum are duplicate.

Expected behavior In media does not have duplicate with one sum hash When i back in page with turbo cache i had to see one block preview dz-preview

Screenshots

Monosnap Обновить SEO-поле - Laravel 2024-05-03 18-44-17

image

Device information:

Additional context Add any other context about the problem here.

GDogyGy commented 2 months ago

i used orchid 2 years ago and this bug stil alive

saurik commented 2 months ago

It seems like you have us confused with a different product: I have no clue what any of this means.

saurik commented 2 months ago

@GDogyGy FTR, I think you wanted this repository: https://github.com/orchidsoftware/platform