import { FILE_UPLOAD_STATUS } from '../constants';
import { createUploadItemId } from './id';
export function createBaseNewUploadFileItem(file) {
    var id = createUploadItemId();
    var item = {
        _id: id,
        _file: file,
        id: id,
        file: file,
        name: file.name,
        type: file.type,
        status: FILE_UPLOAD_STATUS.beforeUpload,
        percent: 0,
    };
    return item;
}
