The image is not saved in the database or in the public #2566
Unanswered
danielreales7
asked this question in
Q&A
Replies: 1 comment
-
If for example I upload the file directly through Storage it will upload it correctly. |
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 am having a problem when I save an image to the database:
I don't have any errors. Only when I call $image->getUrl()
TypeError: Return value of Spatie\MediaLibrary\Support\PathGenerator\DefaultPathGenerator::getBasePath() must be of the type string, null returned in file C:\xampp\htdocs\aldanux-web\vendor\spatie\laravel-medialibrary\src\Support\PathGenerator\DefaultPathGenerator.php on line 38
Post Model has:
How can I know why it is not storing anything in the database?
Thank you so much for your help!
Beta Was this translation helpful? Give feedback.
All reactions