mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 00:01:40 +02:00
Merge pull request #3851 from penpot/niwinz-develop-thumbnails-storage-deduplicate
✨ Add file object thumbnail deduplication mechanism
This commit is contained in:
commit
dde27eb736
11 changed files with 292 additions and 113 deletions
|
@ -164,7 +164,7 @@
|
|||
:object-id object-id
|
||||
:media blob
|
||||
:tag (or tag "frame")}]
|
||||
(rp/cmd! :upsert-file-object-thumbnail params))))
|
||||
(rp/cmd! :create-file-object-thumbnail params))))
|
||||
(rx/catch rx/empty)
|
||||
(rx/ignore)))))
|
||||
(rx/catch (fn [cause]
|
||||
|
|
|
@ -47,10 +47,10 @@
|
|||
(def default-options
|
||||
{:update-file {:query-params [:id]}
|
||||
:get-raw-file {:rename-to :get-file :raw-transit? true}
|
||||
:upsert-file-object-thumbnail {:query-params [:file-id :object-id :tag]
|
||||
:form-data? true}
|
||||
:create-file-object-thumbnail {:query-params [:file-id :object-id :tag]
|
||||
:form-data? true}
|
||||
|
||||
:create-file-object-thumbnail
|
||||
{:query-params [:file-id :object-id :tag]
|
||||
:form-data? true}
|
||||
|
||||
:create-file-thumbnail
|
||||
{:query-params [:file-id :revn]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue