We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Increase maximum video size for upload in RichTextEditor

Greetings Syncfusion Team!

I am trying to upload video with size larger then 30MB and I ma getting File size is too large warning:

Does exists option to increase maximum file size?


1 Reply 1 reply marked as answer

VY Vinothkumar Yuvaraj Syncfusion Team April 18, 2023 10:54 AM UTC

Hi Stefan,


To increase the maximum size of the video upload in Rich Text Editor, please use the maxFileSize property through the uploader instance on the dialogOpen event. We have attached a sample and the following code for your reference.


<ejs-richtexteditor (dialogOpen)="dialogOpen($event)" >

</ejs-richtexteditor>



public dialogOpen(args){

if(document.getElementById("insertMediaRTE_upload") != null){

(document.getElementById("insertMediaRTE_upload")as any).ej2_instances[0] .maxFileSize = 209715200

        }

    }


Sample : https://stackblitz.com/edit/angular-g2ajgv?file=src%2Fapp.component.html,src%2Fapp.component.ts


API Links :

https://ej2.syncfusion.com/angular/documentation/api/uploader#maxfilesize

https://ej2.syncfusion.com/angular/documentation/api/rich-text-editor/#dialogopen


Please let us know if you have any further questions or concerns.


Regards,

Vinothkumar


Marked as answer
Loader.
Live Chat Icon For mobile
Up arrow icon