The correct mimetype is image/jpeg, not image/jpg. image/jpeg can cause
issues with other platforms. See https://www.rfc-editor.org/rfc/rfc3745
This commit is contained in:
parent
3ec9e603df
commit
d4fc60b900
|
@ -43,7 +43,7 @@ extension Mastodon.Query.MediaAttachment {
|
|||
|
||||
public var mimeType: String {
|
||||
switch self {
|
||||
case .jpeg: return "image/jpg"
|
||||
case .jpeg: return "image/jpeg"
|
||||
case .gif: return "image/gif"
|
||||
case .png: return "image/png"
|
||||
case .other(_, _, let mimeType): return mimeType
|
||||
|
|
Loading…
Reference in New Issue