Spatie Media Uploader only works with base64? #958
Replies: 1 comment
-
This has to do with the media uploader package, so will post an issue there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use the spatie Media helper package with backpack. I have my own image upload field, but looking at the backpack spatie helper package, it looks for "data:image" which I'm assuming is base64.
Because of this, it's not storing the media and instead not even giving an error, just pretends it worked successfully when it doesn't.
It never enters the conditions because I'm sending as a file, not base64.
Do I need to convert the file to base64 after validation or something? Or am I better off sending via js fetch as JSON?
Beta Was this translation helpful? Give feedback.
All reactions