Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file(file: File): void {
- UploadFS.selectFiles(function(file){
- var today = new Date();
- var dd = today.getTime();
- let photo = {
- name: file.name + dd,
- size: file.size,
- type: file.type
- };
- let worker = new UploadFS.Uploader({
- store: ImagesStore,
- data: file,
- file: photo,
- onComplete(file) {
- console.log(file.name + ' has been uploaded');
- this.check = file.name;
- }
- });
- worker.start();
- this.check = photo.name;
- console.log(photo.name); //here the name of file is visible
- });
- console.log("check outside33 ",this.check); // here not: output: undefinded
- //this.onFile.emit(this.check);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement