src/file-sharing/FileUploadStatus.js
import {Enum} from '../utils/Enum';
/**
* Enum containing the possible status of a file upload. Possible values:
* - LOADING
* - SENDING
* - COMPLETED
* - ERROR
* - ABORTED
* - FILE_EXTENSION: it happens when the file extension is not accepted
* - FILE_SIZE: it happens when the file size exceeds the maximun allowed
* - FILE_NAME_LENGTH: indicates the file name is longer than allowed
* @type {Enum}
*/
export const FileUploadStatus = new Enum([
'LOADING',
'SENDING',
'COMPLETED',
'ERROR',
'ABORTED',
'FILE_EXTENSION',
'FILE_SIZE',
'FILE_NAME_LENGTH',
]);