mattaustin / django-storages-s3upload

Direct (client-side) HTTP POST file upload to S3 using Django forms/views.
http://django-storages-s3upload.readthedocs.org/
Apache License 2.0
8 stars 4 forks source link

Allow easier overriding of ``S3UploadFormView.validate_upload``. #2

Closed jscn closed 10 years ago

jscn commented 10 years ago

Break up the validate_upload method so that it's easier to override using a simialar API to Django's FormMixin. It should now be easy to override the default validation by sub-classing ValidateS3UploadForm, overriding it's clean method and setting it as the validate_upload_form_class property on your S3UploadFormView.