bookstack/app/Exports/ZipExports/Models
Dan Brown 59cfc087e1
ZIP Imports: Added image type validation/handling
Images were missing their extension after import since it was
(potentially) not part of the import data.
This adds validation via mime sniffing (to match normal image upload
checks) and also uses the same logic to sniff out a correct extension.

Added tests to cover.
Also fixed some existing tests around zip functionality.
2024-11-18 17:42:49 +00:00
..
ZipExportAttachment.php ZIP Exports: Added ID checks and testing to validator 2024-11-18 15:53:21 +00:00
ZipExportBook.php ZIP Exports: Added ID checks and testing to validator 2024-11-18 15:53:21 +00:00
ZipExportChapter.php ZIP Exports: Added ID checks and testing to validator 2024-11-18 15:53:21 +00:00
ZipExportImage.php ZIP Imports: Added image type validation/handling 2024-11-18 17:42:49 +00:00
ZipExportModel.php ZIP Imports: Added full contents view to import display 2024-11-05 13:17:31 +00:00
ZipExportPage.php ZIP Exports: Added ID checks and testing to validator 2024-11-18 15:53:21 +00:00
ZipExportTag.php ZIP imports: Started actual import logic 2024-11-09 14:01:24 +00:00