[Sprint/InterestingIguana](bug): Throwing exception when max filesize reached
closes #1506
0/1 thread resolved
changed the description
- Owner
I think the check should be done here https://gitlab.com/minds/front/blob/master/src/app/services/attachment.ts#L404
- Owner
See how we are getting the length of the video
- Developer
@markeharding Simple as like this or does it need to be in a promise?
- Developer
404 404 private checkFileType(file): Promise<any> { 405 405 return new Promise((resolve, reject) => { 406 406 if (file.type && file.type.indexOf('video/') === 0) { 407 if (file.size > 1900000000) { 408 throw new Error('File exceeds 1.9GB maximum size. Please try compressing your file.'); 409 } 410 407 411 this.attachment.mime = 'video'; 408 - Owner
no need to remove line
added MR::Requires Changes label