Skip to content

Commit

Permalink
Merge pull request #42 from rogerthat94/patch-1
Browse files Browse the repository at this point in the history
Clarify access to file and metadata elements of upload object in uploaders module.
  • Loading branch information
jcohen02 committed Jul 20, 2020
2 parents 2c06003 + 2f998ff commit 5c7dffa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion django_drf_filepond/uploaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def _get_file_obj(cls, request):
if upload_field_name not in request.data:
raise ParseError('Invalid request data has been provided.')

file_obj = request.data[upload_field_name]
upload_fields = request.data.getlist(upload_field_name)
# file_metadata = upload_fields[0]
file_obj = upload_fields[1]

return file_obj

Expand Down

0 comments on commit 5c7dffa

Please sign in to comment.