Adding headers to the file inputs in preparation of Blob type support

This commit is contained in:
Sam Coenen 2018-01-25 15:31:22 +01:00
parent ec610c3f66
commit a5f677a377
3 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
const FileInput = props => (
<div>
<h3>{props.title}</h3>
<input type="file" {...props} />
<style jsx>{`
div {

View File

@ -15,7 +15,7 @@ const MultipleUploader = ({ mutate }) => {
}
})
return <FileInput multiple required onChange={handleChange} />
return <FileInput multiple required onChange={handleChange} title={'Multiple files upload'} />
}
export default graphql(gql`

View File

@ -15,7 +15,7 @@ const SingleUploader = ({ mutate }) => {
}
})
return <FileInput required onChange={handleChange} />
return <FileInput required onChange={handleChange} title={'Single file upload'} />
}
export default graphql(gql`