]> BookStack Code Mirror - bookstack/commit
Reviewed base64 image upload support
authorDan Brown <redacted>
Wed, 2 Jun 2021 20:34:34 +0000 (21:34 +0100)
committerDan Brown <redacted>
Wed, 2 Jun 2021 20:34:34 +0000 (21:34 +0100)
commit39928e1c6359d02575af3ffeef7bd8706561e7bb
tree56b6299342a1dfb622eec7a09e78a1a9928c8fcb
parent40ca50e44f3ca0f648d915dc73ff205309730f07
Reviewed base64 image upload support

- Added test cases to cover.
- Altered parsing logic to be a little less reliant on regex.
- Added new iamge repo method for creating from data.
- Added extension validation and additional type support.
- Done some cleanup of common operations within PageContent.
- Added message to API docs/method to mention image usage.

For #2700 and #2631.
app/Entities/Tools/PageContent.php
app/Http/Controllers/Api/PageApiController.php
app/Uploads/ImageRepo.php
tests/Entity/PageContentTest.php