Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
mastofe
Commits
56d77aa5
Verified
Commit
56d77aa5
authored
Jul 05, 2019
by
Haelwenn
Browse files
upload_button.js: Accept all MIME types
parent
bcd29f1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/javascript/flavours/glitch/features/compose/components/options.js
View file @
56d77aa5
...
...
@@ -261,7 +261,6 @@ class ComposerOptions extends ImmutablePureComponent {
return
(
<
div
className
=
'
composer--options
'
>
<
input
accept
=
{
acceptContentTypes
}
disabled
=
{
disabled
||
!
allowMedia
}
key
=
{
resetFileKey
}
onChange
=
{
this
.
handleChangeFiles
}
...
...
app/javascript/mastodon/features/compose/components/upload_button.js
View file @
56d77aa5
...
...
@@ -70,7 +70,6 @@ class UploadButton extends ImmutablePureComponent {
ref
=
{
this
.
setRef
}
type
=
'
file
'
multiple
accept
=
{
acceptContentTypes
.
toArray
().
join
(
'
,
'
)}
onChange
=
{
this
.
handleChange
}
disabled
=
{
disabled
}
style
=
{{
display
:
'
none
'
}}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment