'user' field passed to BaseChunkedUpload causes exception
See original GitHub issueIn my code I’ve extended BaseChunkedUpload without adding a user field. If the django request is authenticated, an error is thrown after injecting a user field into the attrs dict here:
https://github.com/juliomalegria/django-chunked-upload/blob/master/chunked_upload/views.py#L184
There should be an extra condition which verifies that a user field exists on self.model
before injecting it into attrs.
Issue Analytics
- State:
- Created 5 years ago
- Comments:26 (2 by maintainers)
Top Results From Across the Web
How to raise error for email field if user is trying to pass just ...
If you use EmailField then it has a built-in validator.
Read more >A missing field should not cause an exception when trying to ...
Drupal\tmgmt_content\Plugin\tmgmt\Source\ContentEntitySource::doSaveTranslations() throws an exception when there is data for a field tha ...
Read more >Error: "Data Policy Exception: The following fields are read only
Hi, I created a data policy which makes two (2) true/false fields "read only" if a specific field in the case form is...
Read more >Insert failed. First exception on row 0; first error
caused by: System.SObjectException: Invalid field npe03__Recurring_Donation__c.id for Opportunity Class.ChatterUpHelper.
Read more >Failed to parse field of type in document with id ''. - Opster
There are a multitude of reasons why this error can happen, ... to choose one of the many numeric field types because it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@GitRon I have a second thought on the naming of the new repo/package. How about django-chunked-upload-2? Yeah, maybe it’s a bit ugly. 😟
I’ve already forked this project. What rights do you need? Collaborator permissions?
fixed in #55