You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just installed the Pro version of the Media Library with Laravel 11 (upgraded from v10). I am trying to get a single image upload form working using 'x-media-library-attachment'. I think I have it working, being able to drag-n-drop an image into the file upload form. However, when I save the form, the controller saves the file okay, and then redirects the user back to the same 'edit' page.
What I notice is that the thumbnail preview is not displayed on page reload. I guess I expected the preview of the saved image would be pre-loaded into the form and displayed so that the user can 'remove/delete' the image and/or upload a new image to replace it.
Question: Should I expect the thumbnail to be displayed? If so, am I missing something in my code?
Can anyone help? I'm stuck. Thanks.
Notes:
The temporary upload file automatically uploads successfully and is recorded in the DB.
The uploaded file is stored in the /public folder just fine and is accessible via a url.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I just installed the Pro version of the Media Library with Laravel 11 (upgraded from v10). I am trying to get a single image upload form working using 'x-media-library-attachment'. I think I have it working, being able to drag-n-drop an image into the file upload form. However, when I save the form, the controller saves the file okay, and then redirects the user back to the same 'edit' page.
What I notice is that the thumbnail preview is not displayed on page reload. I guess I expected the preview of the saved image would be pre-loaded into the form and displayed so that the user can 'remove/delete' the image and/or upload a new image to replace it.
Question: Should I expect the thumbnail to be displayed? If so, am I missing something in my code?
Can anyone help? I'm stuck. Thanks.
Notes:
Below are screenshots of my screen and code.
Beta Was this translation helpful? Give feedback.
All reactions