'XHR returned response code 500' when uploading images #2357
Unanswered
adam-jones-net
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've had this years ago in twill but can't remember what the fix is. I'm using twill 2.x on a site and it produces this whatever the size/res of the image I upload.
I believe I have image paths configured in the config of twill.
If I add debug in the MediaLibraryController.php file I see that $uploadedFile has a valid uri to a temp file. However when at line 179 it has the function path() run over it, in testing running $uploadedFile->path() returns nothing.
177: $uploadedFile = $request->file('qqfile');
178:
179: list($w, $h) = getimagesize($uploadedFile->path());
Beta Was this translation helpful? Give feedback.
All reactions