Fix base64-encoded image files for asset creation; add test

This commit is contained in:
Brady Wetherington
2025-10-07 16:00:16 +01:00
parent 6cf88b1792
commit ee499c1385
3 changed files with 31 additions and 10 deletions
+1
View File
@@ -26,6 +26,7 @@ class StoreAssetRequest extends ImageUploadRequest
public function prepareForValidation(): void
{
parent::prepareForValidation(); // call ImageUploadRequest thing
// Guard against users passing in an array for company_id instead of an integer.
// If the company_id is not an integer then we simply use what was
// provided to be caught by model level validation later.