Skip to content

Instantly share code, notes, and snippets.

@kylebebak
Created March 12, 2019 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylebebak/d352024858a503f17cd585e91333d616 to your computer and use it in GitHub Desktop.
Save kylebebak/d352024858a503f17cd585e91333d616 to your computer and use it in GitHub Desktop.
const DropzoneWithPreview = () => {
return (
<Dropzone
getUploadParams={() => ({ url: 'https://httpbin.org/post' })}
onChangeStatus={({ remove }, status) => { if (status === 'headers_received') remove() }}
accept="image/*,audio/*,video/*"
/>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment