Skip to content
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

File uploads initially don't work correctly on the admin interface when using inlines #16

Closed
jorisvddonk opened this issue Jul 30, 2014 · 2 comments

Comments

@jorisvddonk
Copy link

Uploading files inside a (stacked or tabular) inline form on the django admin interface doesn't work correctly: no file is actually uploaded. After selecting a file to upload and hitting save, an error is shown telling you that the file field is required. When this error is displayed and you retry the upload, uploading a file works correctly.

Checking with the Chrome devtools shows that nothing is actually getting uploaded when you select a file to upload, so this appears to be an issue with the form.

Tested with Django 1.6 with the default admin interface, django-admin-tools and django-suit. Verified that file uploads in regular forms (non-stacked) works correctly.

Configuration in which it doesn't work (from the django tutorial polls app): https://gist.github.com/jorisvddonk/9fad25e43f30856e29eb

@bradleyg
Copy link
Owner

Thanks. Fixed in 7a6c486.

@jorisvddonk
Copy link
Author

Thanks for the quick fix!

bport pushed a commit to bport/django-s3direct that referenced this issue Aug 21, 2018
* add event listener for async initialisation

will default to ‘.s3upload’ , but can be passed custom event data for
more specific targeting

* add example of async init in action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants