blob: 0b5fc3cbe2e87b3e70da3c996563d2b17846d164 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001// Copyright 2019 The Chromium Authors. All rights reserved.
2// 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?';