Laravel Debugbar conflicts with media uploads #922
-
Posted on behalf of @JeremyChb who filed the following issue: When uploading an image, a 500 Internal Service Error is returned: Seems like an excessive amount of HTML is included in the request: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Posted on behalf of @mukarramkhalid who provided the following solution: This is happening due to Laravel Debugbar. If your app is in production or Laravel Debugbar is disabled, then it works fine. The problem is that when you upload an image, the API returns image path and name. If Debugbar is enabled, the response includes all the debug output as well. Canvas considers this whole output as a file path/name, which is too long for the column where it saves it eventually. |
Beta Was this translation helpful? Give feedback.
Posted on behalf of @mukarramkhalid who provided the following solution:
This is happening due to Laravel Debugbar.
If your app is in production or Laravel Debugbar is disabled, then it works fine.
The problem is that when you upload an image, the API returns image path and name. If Debugbar is enabled, the response includes all the debug output as well.
Canvas considers this whole output as a file path/name, which is too long for the column where it saves it eventually.
Related issues: #890, #709