Skip to content

Commit

Permalink
fix: Fix error in media uploader example (#344) #342
Browse files Browse the repository at this point in the history
* lay down all the boilerplate

* styles

* refactor for max customization

* document all the things

* split out utils

* tests for everything that isn't a nightmare to mock

* s3 input validation bug

* better s3 handling

* can't restart the travis build manually for some reason

* give keys more descriptive names

* add missing async
  • Loading branch information
radditude authored and prehnRA committed Oct 29, 2018
1 parent 84201b1 commit 1ffc468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs-src/src/examples/MediaUploader/S3.js.example
Expand Up @@ -8,7 +8,7 @@
// fileUrl: 'https://url.of.the.file/on/s3',
// }

<MediaUploader getS3Info={(file) => {
<MediaUploader getS3Info={async (file) => {
const response = await fetch(`/images/sign?file_name=${file.name}`)
const {data} = await response.json()

Expand Down

0 comments on commit 1ffc468

Please sign in to comment.