mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Add support for many missing raw formats (#2834)
* Allow upload of AVIF and x-canon-cr2 mime types * Allow generic RAW file mime type image/x-dcraw * Another place to uploading avif and cr2 * Determine mime type for .avif and .cr2 files correctly * Update asset-upload.config.spec.ts for CR2 and AVIF files * More changes for AVIF & CR2 files Found some other places where avif and cr2 should be mentioned. * Merge in upstream changes * Allow uploading and using most of the formats that libraw supports * Add raw files to allowable mobile uploads * Update asset-upload.config.spec.ts Fix errant commas. * Update asset-utils.ts Remove duplicate entry in hash table. * Fix missing k25 mime type in server upload check. Fix prettier formatting message in web file-uploader. * fix test --------- Co-authored-by: Elliot Lee <sopwith@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
parent
c404ea20ee
commit
81e2b18531
6 changed files with 129 additions and 4 deletions
|
|
@ -22,7 +22,8 @@ export const openFileUploadDialog = async (
|
|||
|
||||
// When adding a content type that is unsupported by browsers, make sure
|
||||
// to also add it to getFileMimeType() otherwise the upload will fail.
|
||||
fileSelector.accept = 'image/*,video/*,.heic,.heif,.dng,.3gp,.nef,.srw,.raf,.insp,.insv,.arw';
|
||||
fileSelector.accept =
|
||||
'image/*,video/*,.heic,.heif,.avif,.dng,.3gp,.nef,.srw,.crw,.cr2,.cr3,.raf,.insp,.insv,.arw,.erf,.raf,.dcr,.k25,.kdc,.mrw,.orf,.raw,.pef,.x3f,.srf,.sr2,.3fr,.fff,.rwl,.ori,.iiq,.ari,.cap,.cin';
|
||||
|
||||
fileSelector.onchange = async (e: Event) => {
|
||||
const target = e.target as HTMLInputElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue