After upgrading Laravel-medialibrary 6.9.2 to 7.18 file uploads no longer work #1957
-
I upgraded my app from Laravel 5.6->5.7 and in the process Laravel-medialibrary was updated 6.9.2->7.18.0, and now my file uploading is broken. I can trace the following error:
which The changes I made for v.7.18.0 was to change my models using laravel-medialibrary to have the following corrected code per the docs:
The javascript in my view that provides the file upload and list of the collections of files attached to the record worked before the upgrade. The code is as follows:
Any suggestions as to how to debug and remedy this is very much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Anyone? Are there any breaking changes from laravel-medialibrary 6.9.2->7.18.0 that breaks things? I modified all effected models to the changed location for Please advise. I'm dead in the water without a solution. |
Beta Was this translation helpful? Give feedback.
-
After digging deep into the Chrome console and network reporting on the error I found a SQL error that indicated a new column was needed in the If I may suggest linking the upgrading doc to the repository docs so that others like me, trying to upgrade versions, can both know it exists and find it. |
Beta Was this translation helpful? Give feedback.
After digging deep into the Chrome console and network reporting on the error I found a SQL error that indicated a new column was needed in the
media
table. A Google search on this found me actual documentation for upgrading laravel-medialibrary from v.6 to v.7. After adding theresponsive_images
column to themedia
table, and double-checking the other upgrade requirements (which I had already done from the regular setup docs for that version) everything worked again.If I may suggest linking the upgrading doc to the repository docs so that others like me, trying to upgrade versions, can both know it exists and find it.