2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-28 03:49:20 +00:00
Files
InvenTree/docs/docs
Oliver 27ca0836e7 [refactor] Attachment images (#11961)
* Add new Attachment model fields:

- is_image
- thumbnail

* Cache if the attachment is an image

* Add new setting for controlling max upload size

* Validate uploaded attachment file

* Add tqdm for progress bars

* Refactor migrations

- Don't need is_image field
- Can introspect from the thumbnail

* Data migration for existing attachments

* Bump API version

* Update tests and validators

* Add "is_image" field to the Attachment model

* Offload to background task

* Implement unit tests

* Docs

* Add unit test for data migration

* Additional unit test

* Omit migration tests from code coverage

* Additional unit tests
2026-05-22 23:37:32 +10:00
..
2026-05-22 17:08:40 +10:00
2026-05-02 10:04:35 +10:00
2026-05-22 17:08:40 +10:00
2025-12-11 16:19:47 +11:00
2026-05-10 20:55:05 +10:00
2025-12-07 08:11:26 +11:00
2025-10-26 17:16:59 +11:00
2026-04-11 12:03:58 +10:00
2026-05-02 09:14:02 +10:00
2026-05-22 17:08:40 +10:00
2024-03-02 11:28:37 +11:00
2023-04-22 23:35:25 +10:00
2024-10-27 10:51:51 +11:00
2026-04-24 10:52:17 +10:00
2025-04-22 08:18:32 +10:00
2023-04-22 22:40:29 +10:00
2025-11-26 21:27:13 +11:00