bugfix
This commit is contained in:
parent
2d6323274b
commit
ff9f06d648
|
@ -232,15 +232,16 @@ export class CommonApiService {
|
|||
const rejected: string[] = [];
|
||||
for (const file of files) {
|
||||
const info = await MimeUtil.getMimeFromBlob(file);
|
||||
|
||||
// console.log('mime info', info);
|
||||
if (
|
||||
!file ||
|
||||
!info ||
|
||||
-1 ===
|
||||
this.moduleConfig.acceptableFileExtensions.indexOf(
|
||||
info.ext.toLocaleLowerCase()
|
||||
)
|
||||
) {
|
||||
rejected.push(info.ext);
|
||||
rejected.push(file.name);
|
||||
accept = false;
|
||||
}
|
||||
}
|
||||
|
@ -252,6 +253,7 @@ export class CommonApiService {
|
|||
);
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
public mimeCheckForImageAndVideoFiles(files: File[]) {
|
||||
files.forEach(file => {
|
||||
console.log(file);
|
||||
|
|
|
@ -1145,7 +1145,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
AlertSnackbarComponent,
|
||||
AlertSnackbarData
|
||||
>(AlertSnackbarComponent, {
|
||||
duration: 1000,
|
||||
duration: 3000,
|
||||
verticalPosition: 'bottom',
|
||||
horizontalPosition: 'center',
|
||||
data: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user