Hello Team,
My requirement is to let a user upload files and folders in the some controller, but currently if we have folder upload available, we will be unable to upload files individually. Is there a possibility of doing both of these tasks in the same controller ?
Hi Keerthana,
Yes I'm sorry for the misunderstanding, I meant to refer to EJ2 Uploader but accidently selected EJ1 Uploadbox.
Thanks,
Savindu J.
|
<div class="control-section">
<div class="col-lg-9">
<div class="control_wrapper">
<ejs-uploader
#defaultupload
id="defaultfileupload"
[asyncSettings]="path"
[dropArea]="dropElement"
(removing)="onFileRemove($event)"
></ejs-uploader>
</div>
</div>
<div class="col-lg-3 property-section">
<div class="property-panel-section">
<div class="property-panel-header">Properties</div>
<div class="property-panel-content">
<ejs-checkbox
#checkbox
label="Enable/Disable folders upload"
[checked]="false"
(change)="changeHandler($event)"
></ejs-checkbox>
</div>
</div>
</div>
</div>
|
|
public changeHandler: EmitType<Object> = () => {
this.uploadObj.directoryUpload = this.checkboxObj.checked;
};
|
Hey
Indrajith ,
Thank you so much for you clarifying this inquiry we had. The alternative method you suggested works well for our requirement, so we shall follow something similar to this. Thank you very much again for reply, its really appreciated
Best Regards,
Savindu