Adding headers to the file inputs in preparation of Blob type support
This commit is contained in:
parent
ec610c3f66
commit
a5f677a377
@ -1,5 +1,6 @@
|
|||||||
const FileInput = props => (
|
const FileInput = props => (
|
||||||
<div>
|
<div>
|
||||||
|
<h3>{props.title}</h3>
|
||||||
<input type="file" {...props} />
|
<input type="file" {...props} />
|
||||||
<style jsx>{`
|
<style jsx>{`
|
||||||
div {
|
div {
|
||||||
|
|||||||
@ -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`
|
export default graphql(gql`
|
||||||
|
|||||||
@ -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`
|
export default graphql(gql`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user