mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix
This commit is contained in:
@@ -111,17 +111,16 @@ export class NewPublicationPage implements OnInit {
|
||||
}
|
||||
|
||||
laodPicture() {
|
||||
const input = this.fileLoaderService.createInput({})
|
||||
const input = this.fileLoaderService.createInput({
|
||||
accept: ['image/apng', 'image/jpeg', 'image/png']
|
||||
})
|
||||
|
||||
input.onchange = async () => {
|
||||
// you can use this method to get file and perform respective operations
|
||||
let files = Array.from(input.files);
|
||||
const file1 = files[0]
|
||||
|
||||
const imageData = await this.fileToBase64Service.convert(file1)
|
||||
const file = this.fileLoaderService.getFirstFile(input)
|
||||
|
||||
const imageData = await this.fileToBase64Service.convert(file)
|
||||
this.capturedImage = imageData;
|
||||
this.capturedImageTitle = file1.name
|
||||
this.capturedImageTitle = file.name
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user