Hi Namita,
We have checked your requirements, You can manage the size of the file you are uploading by using the maxFileSize, minFileSize property, the values assigned to this property specifies the file size to be uploaded in bytes , The below code snippet shows an example to set the maxFileSize and minFileSize.
<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)' minFileSize = 10000 maxFileSize = 15000000></ejs-uploader>
</div>
</div>
</div>
|
if you are using IIS for hosting your application, then the default upload file size is 4MB. To increase it, please use this below section in your web.config -
<configuration>
<system.web>
<httpRuntime maxRequestLength="1048576" />
</system.web>
</configuration> |
For IIS7 and above, you also need to add the lines below:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>
|
I have also attached the solution provided in Stackoverflow related to your query.
We have also attached a sample to demonstrate your requirements.
Let us know if the provided solution meets your requirement, If not please provide detailed information on your scenario.
Thanks,
Joseph Christ Nithin I.