File upload default value? #9867
Unanswered
devhoussam1998
asked this question in
Help
Replies: 4 comments 4 replies
-
still no answer? |
Beta Was this translation helpful? Give feedback.
0 replies
-
any answers ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Waiting for an answer |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi everyone, The following code snippet won't work because it requires a relative path instead of an absolute URL: FileUpload::make('image')
->image()
->imageEditor()
->default('https://dummyimage.com/900x700') // This needs to be a relative path
->required(), For example, you should use a path like: I know it's a bit late, but I just wanted to share this fix. Hope it helps! 😊 |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
->default('https://dummyimage.com/900x700')
does not appearBeta Was this translation helpful? Give feedback.
All reactions