blob: 3a4aa49cf09815bd640b40b83668514908da0b73 [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001// Copyright 2019 The Chromium Authors
Copybara854996b2021-09-07 19:36:02 +00002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// List of content type prefixes that the user will not be warned about when
6// downloading an attachment.
7export const ALLOWED_CONTENT_TYPE_PREFIXES = [
8 'audio/', 'font/', 'image/', 'text/plain', 'video/',
9];
10
11// List of file extensions that the user will not be warned about when
12// downloading an attachment.
13export const ALLOWED_ATTACHMENT_EXTENSIONS = [
14 '.avi', '.avif', '.bmp', '.csv', '.doc', '.docx', '.email', '.eml', '.gif',
15 '.ico', '.jpeg', '.jpg', '.log', '.m4p', '.m4v', '.mkv', '.mov', '.mp2',
16 '.mp4', '.mpeg', '.mpg', '.mpv', '.odt', '.ogg', '.pdf', '.png', '.sql',
17 '.svg', '.tif', '.tiff', '.txt', '.wav', '.webm', '.wmv',
18];
19
20// The message to show the user when they attempt to download an unrecognized
21// file type.
22export const FILE_DOWNLOAD_WARNING = 'This file type is not recognized. Are' +
23 ' you sure you want to download this attachment?';