-
Notifications
You must be signed in to change notification settings - Fork 107
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
Uploading Multipart files #74
Comments
I marked
class JSONSerializer(Serializer):
def deserialize(self, body):
"""
The low-level deserialization.
Underpins ``deserialize``, ``deserialize_list`` &
``deserialize_detail``.
Has no built-in smarts, simply loads the JSON.
:param body: The body of the current request
:type body: string
:returns: The deserialized data
:rtype: ``list`` or ``dict``
"""
if isinstance(body, bytes):
return json.loads(body.decode('utf-8')) # LINE 62
return json.loads(body) |
I implemented a custom multipart file aware serializer for Restless Tornado. |
4 years and this is still open. So it is still impossible to upload files using this API, right? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can not upload files with restless.
It raises exception before my Resource's
def create(*args ,**kwargs)
method and seems to serialize file content as json.I am using httpie for testing uploads from CLI.
https://github.com/jkbrzt/httpie#file-upload-forms
Traceback
The text was updated successfully, but these errors were encountered: