change base64 to file chunk

This commit is contained in:
Peter Maquiran
2024-03-26 14:20:14 +01:00
parent 09792fe2ce
commit 37ae4d5325
5 changed files with 13 additions and 13 deletions
@@ -315,7 +315,7 @@ export class ViewPublicationsPage implements OnInit {
async AddPublication(publicationType: any, folderId: any) { async AddPublication(publicationType: any, folderId: any) {
// if(this.PublicationHolderService.PublicationFormMV.length == 0) { if(this.PublicationHolderService.PublicationFormMV.length == 0) {
const modal = await this.modalController.create({ const modal = await this.modalController.create({
component: NewPublicationPage, component: NewPublicationPage,
componentProps: { componentProps: {
@@ -330,9 +330,9 @@ export class ViewPublicationsPage implements OnInit {
this.doRefresh(event); this.doRefresh(event);
}); });
await modal.present(); await modal.present();
//} else { } else {
// this.toastService._successMessage('já existe uma publicação a ser processado'); this.toastService._successMessage('já existe uma publicação a ser processado');
//} }
} }
@@ -358,9 +358,9 @@ export class NewPublicationPage implements OnInit {
} }
ngOnDestroy() { ngOnDestroy() {
// if(!this.PublicationFromMvService.form.send) { if(!this.PublicationFromMvService.form.send) {
// this.PublicationFromMvService.cancel() this.PublicationFromMvService.cancel()
// } }
} }
@@ -126,7 +126,7 @@ export class PublicationFromMvService {
// const loader = this.toastService.loading() // const loader = this.toastService.loading()
this.form.send = false this.form.send = true
const upload = await this.uploadVideosFiles() const upload = await this.uploadVideosFiles()
if(upload) { if(upload) {
@@ -215,7 +215,7 @@ export class ViewPublicationsPage implements OnInit {
async AddPublication(publicationType: any, folderId: any) { async AddPublication(publicationType: any, folderId: any) {
//if(this.PublicationHolderService.PublicationFormMV.length == 0) { if(this.PublicationHolderService.PublicationFormMV.length == 0) {
if (window.innerWidth < 701) { if (window.innerWidth < 701) {
const modal = await this.modalController.create({ const modal = await this.modalController.create({
@@ -239,10 +239,10 @@ export class ViewPublicationsPage implements OnInit {
folderId: folderId folderId: folderId
}) })
} }
// } else { } else {
// this.toastService._successMessage('já existe uma publicação a ser processado'); this.toastService._successMessage('já existe uma publicação a ser processado');
//} }
+1 -1
View File
@@ -4,4 +4,4 @@ import { environment as oaprDev } from './suport/oapr'
import { DevDev } from './suport/dev' import { DevDev } from './suport/dev'
export const environment: Environment = oaprDev export const environment: Environment = DevDev