Skip to content

Commit

Permalink
Docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleyg committed Sep 5, 2014
1 parent 051dda4 commit 16c4fb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ S3DIRECT_REGION = 'us-east-1'
# Destinations in the following format:
# {destination_key: (path_or_function, auth_test, [allowed_mime_types])}
# 'destination_key' is the key to use for the 'dest' attribute on your widget or model field
S3DIRECT_DESTINATIONS={
S3DIRECT_DESTINATIONS = {
# Allow anybody to upload any MIME type
'misc': ('uploads/misc',),

Expand All @@ -78,7 +78,7 @@ S3DIRECT_DESTINATIONS={
'vids': ('uploads/vids', lambda u: u.is_authenticated(), ['video/mp4'],)

# Allow anybody to upload any MIME type with a custom name function, eg:
'custom_filename': (lambda old_filename: 'images/unique.jpg',),
'custom_filename': (lambda original_filename: 'images/unique.jpg',),
}
```

Expand Down

0 comments on commit 16c4fb6

Please sign in to comment.