-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception when uploading binary files #27
Comments
Hmm, not really sure. Can you post the code from your form? The FILES array isn't usually shown. Are you passing the file to a view or something? |
This is the form: {{ Form::open(array('url' => URL::to("downloadscp/upload"), 'files' => true)) }} Controller: $validator = ValidatorService::validateFileUpload(); No special configuration as far as I know. |
And a specific file that is causing trouble, or all files?
|
Yes, it seems that file is being passed back to the view because of ->withInput() edit: see next comment |
Ok, I changed the redirect to ->withInput(Input::except("file")); so now the file is not being passed back if validator fails. But this does not seem to be the problem. The validator passes fine and all steps are completed, all info is in the database. Just the debugbar crashes, everything else is executing fine. |
Can you try disabling the data collectors in the debugbar config to see
|
It is the db collector.. and I know why. I am saving the files in LARGEBLOB field in database. This must be the problem. |
Ok, pushed a possible fix to php-debugbar upstream. |
Is merged, is this better? |
I will do some tests and report back. |
When using HTML form to upload binary file an exception is thrown in debugbar:
json_encode() [function.json-encode]: Invalid UTF-8 sequence in argument
In \vendor\maximebf\debugbar\src\DebugBar\JavascriptRenderer.php
I assume this is used to display the POST data but it can't chew up the binary.
The text was updated successfully, but these errors were encountered: