mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix 1 to 100%
This commit is contained in:
@@ -713,13 +713,10 @@ export class NewPublicationPage implements OnInit {
|
||||
.then(async (content) => {
|
||||
this.filecontent = true;
|
||||
|
||||
const file = new File([element.blob], element.name);
|
||||
|
||||
const newAttachment = new PublicationAttachmentEntity(
|
||||
{
|
||||
base64: 'data:video/mp4;base64,' + content.data,
|
||||
base64: content.data,
|
||||
extension: 'mp4',
|
||||
blobFile: file,
|
||||
FileType: this.checkFileType.checkFileType('mp4') as any,
|
||||
OriginalFileName: 'load video'
|
||||
}
|
||||
@@ -763,13 +760,10 @@ export class NewPublicationPage implements OnInit {
|
||||
|
||||
this.filecontent = true;
|
||||
|
||||
const file = new File([element.blob], element.name);
|
||||
window['a'] = element
|
||||
const newAttachment = new PublicationAttachmentEntity(
|
||||
{
|
||||
base64: 'data:video/mp4;base64,' + content.data,
|
||||
base64: content.data,
|
||||
extension: 'mp4',
|
||||
blobFile: file,
|
||||
FileType: this.checkFileType.checkFileType('mp4') as any,
|
||||
OriginalFileName: 'load video'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user