Verified Commit 03309609 authored by Haelwenn's avatar Haelwenn

upload_button.js: Accept all MIME types

parent 69c0111d
Pipeline #17960 passed with stage
in 5 minutes and 40 seconds
...@@ -10,6 +10,7 @@ Changes ...@@ -10,6 +10,7 @@ Changes
------- -------
- Getting-Started column: Scrolling is on the whole column rather than being - Getting-Started column: Scrolling is on the whole column rather than being
separated on each compoment separated on each compoment
- File Upload: Remove the MIME/file-extension limitation of accepted files
Fixes Fixes
----- -----
......
...@@ -261,7 +261,6 @@ class ComposerOptions extends ImmutablePureComponent { ...@@ -261,7 +261,6 @@ class ComposerOptions extends ImmutablePureComponent {
return ( return (
<div className='composer--options'> <div className='composer--options'>
<input <input
accept={acceptContentTypes}
disabled={disabled || !allowMedia} disabled={disabled || !allowMedia}
key={resetFileKey} key={resetFileKey}
onChange={this.handleChangeFiles} onChange={this.handleChangeFiles}
......
...@@ -70,7 +70,6 @@ class UploadButton extends ImmutablePureComponent { ...@@ -70,7 +70,6 @@ class UploadButton extends ImmutablePureComponent {
ref={this.setRef} ref={this.setRef}
type='file' type='file'
multiple multiple
accept={acceptContentTypes.toArray().join(',')}
onChange={this.handleChange} onChange={this.handleChange}
disabled={disabled} disabled={disabled}
style={{ display: 'none' }} style={{ display: 'none' }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment