-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove signing view Widgets are now signed when rendered. This behavior saves one call to the application server. * Add support for `accept` attribute Limit upload policy MIME-Type in `accept` attribute. * Add support for `multiple` file uploads * Remove `django-appconf` dependency * Remove progress bar * Add middleware to allow seamless Django integration * Add automatical `FileField.widget` overwrite * Add tests * Reduce file size * Reduce asset size
- Loading branch information
Showing
20 changed files
with
439 additions
and
564 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
default_app_config = 's3file.apps.S3FileConfig' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from django.apps import AppConfig | ||
from django.conf import settings | ||
|
||
|
||
class S3FileConfig(AppConfig): | ||
name = 's3file' | ||
verbose_name = "S3File" | ||
|
||
def ready(self): | ||
from django.forms import FileField | ||
|
||
if hasattr(settings, 'AWS_SECRET_ACCESS_KEY') \ | ||
and settings.AWS_SECRET_ACCESS_KEY: | ||
from .forms import S3FileInput | ||
|
||
FileField.widget = S3FileInput |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.