mastodon/app/models
unarist c8580eb806 Use file extensions in addition to MIME types for file picker (#5029)
Currently we're using a list of MIME types for `accept` attribute on `input[type="file"]` for filter options of file picker, and actual file extensions will be infered by browsers. However, infered extensions may not include our expected items. For example, "image/jpeg" seems to be infered to
only ".jfif" extension in Firefox.

To ensure common file extensions are in the list, this PR adds file extensions in addition to MIME types. Also having items in both format is encouraged by HTML5 spec.

https://www.w3.org/TR/html5/forms.html#file-upload-state-(type=file)
2017-09-20 19:07:23 +02:00
..
concerns Fix #4908 - Do not keep remote file names, generate random (#4934) 2017-09-14 16:41:59 +02:00
form
web Fix WebPush (regression from #4524) (#4778) 2017-09-02 16:50:42 +02:00
account.rb Add instance search feature (#4925) 2017-09-13 12:30:07 +02:00
account_domain_block.rb
account_filter.rb
application_record.rb Fix rubocop issues, introduce usage of frozen literal to improve performance 2016-11-15 16:56:29 +01:00
block.rb annotate models (#2697) 2017-05-02 02:14:47 +02:00
context.rb
conversation.rb
conversation_mute.rb Feature conversations muting (#3017) 2017-05-15 03:04:13 +02:00
custom_emoji.rb Custom emoji (#4988) 2017-09-19 02:42:40 +02:00
domain_block.rb Allow domain blocks that only reject media without silencing or suspending (#4325) 2017-07-24 14:26:55 +02:00
export.rb Settings export refactor (#1646) 2017-04-13 13:02:02 +02:00
favourite.rb
feed.rb
follow.rb
follow_request.rb annotate models (#2697) 2017-05-02 02:14:47 +02:00
import.rb
instance.rb Add Instance class to list admin records (#3443) 2017-05-31 20:38:44 +02:00
instance_filter.rb Add instance search feature (#4925) 2017-09-13 12:30:07 +02:00
media_attachment.rb Use file extensions in addition to MIME types for file picker (#5029) 2017-09-20 19:07:23 +02:00
mention.rb
mute.rb annotate models (#2697) 2017-05-02 02:14:47 +02:00
notification.rb Update Rails to version 5.1.1 (#3121) 2017-06-01 20:53:37 +02:00
preview_card.rb
remote_follow.rb
remote_profile.rb Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00
report.rb Feat add validation for report comment: characters under 1000 valid (#4833) 2017-09-07 09:55:42 +02:00
report_filter.rb
search.rb Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl (#4090) 2017-07-07 04:02:06 +02:00
session_activation.rb
setting.rb
site_upload.rb Uploads for admin site settings (#4913) 2017-09-14 00:04:30 +02:00
status.rb Custom emoji (#4988) 2017-09-19 02:42:40 +02:00
status_pin.rb Allow multiple pinned statuses to be shown and make them be ordered b… (#4690) 2017-08-25 18:50:52 +02:00
stream_entry.rb
subscription.rb
tag.rb
user.rb Add support for multiple themes (#4959) 2017-09-19 16:36:23 +02:00
web.rb