Hi
I am using uploader but not able to drag the file. It is downloading instead.
I am not applying any css.
Here is my code. Please help.
Html:-
<ejs-uploader #chunkupload id='chunkfileupload' [maxFileSize]=104857600 [asyncSettings]='path' [dropArea]='dropElement'
(uploading)="onFileUpload($event);" (removing)="onFileRemove($event)" [allowedExtensions]="AllowedFileTypes">
</ejs-uploader>
Ts:-
export class FlexUploaderComponent {
//baseUrl = environment.baseUrl;
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() {
}