error crieating publication on tablet

This commit is contained in:
Eudes Inácio
2024-03-03 12:22:34 +01:00
parent a8cb5c1374
commit 13ff3f783c
@@ -729,11 +729,12 @@ export class NewPublicationPage implements OnInit {
data.forEach(async element => { data.forEach(async element => {
this.filesSizeSum = this.filesSizeSum + element.size this.filesSizeSum = this.filesSizeSum + element.size
if (this.fileSizeToMB(this.filesSizeSum) <= 20) { if (this.fileSizeToMB(this.filesSizeSum) <= 20) {
if(this.platform.is('ios')) if(this.platform.is('ios')) {
this.recordevideoIos(element.fullPath) this.recordevideoIos(element.fullPath)
} else { } else {
this.recordVideoPc(element.fullPath) this.recordVideoPc(element.fullPath)
}
} else {
if (this.publicationFormMV.form.Files.length === 0) if (this.publicationFormMV.form.Files.length === 0)
this.filesSizeSum = 0 this.filesSizeSum = 0