Multiple Files upload
Hi, I am building simple form where on the front end I am using drop zone for file upload and at backend i am using Laravel media library. So my issue is When I go to edit page my media files are uploaded properly but when i make a request and validation fails, it redirects back now there is a problem. Erro => "Cannot create property 'previewElement' on string '664483ab46cea_1--Malika---Deploy-of-Virtual-Machi.txt'". After hours of debugging i find there is no error with dropzone code when i first visited the route for edit i printed the files variable to console and it printed an object of media type.
But when I make another request where validation fails, it redirects me back to the same page now that the console is only printing the filename as string , not an object.
I further debug the issue where I find when redirects happen my controller function is giving me correct output which of course is an object Just when it goes to blade it's only showing me an array of names not an object.
Please or to participate in this conversation.