Hi
I am using File uploader but I am not able to drag the file. When I am dragging then on droping, it is downloading the file.
Here is my code, Please help.
in html:-
<ejs-uploader #chunkupload id='chunkfileupload' [maxFileSize]=104857600 [asyncSettings]='path' [dropArea]='dropElement'
(uploading)="onFileUpload($event);" (removing)="onFileRemove($event)" [allowedExtensions]="AllowedFileTypes">
</ejs-uploader>
in ts file:-
baseUrl = 'http://localhost:60346/api/';
@Input() TargetPath: string;
@Input() AllowedFileTypes: string;
supportingDocumentList: any[] = [];
@Output() PostUploadEvent = new EventEmitter();
public dropElement: HTMLElement = document.getElementsByClassName('control-fluid')[0] as HTMLElement;
public path: Object = {
saveUrl: this.baseUrl + '/FileUploader/Save',
removeUrl: this.baseUrl + '/FileUploader/Remove',
chunkSize: 2000000
};
constructor() {
}