Add a short sentence

Hi everybody. I would be very happy to know how its possible to add a short sentence at the upload function? Like: “It is allowed to upload a video up to 200mb.” Thanks alot and kind regards

Hello @Jan_Hartwig,

If you want to add some text in the uploader view, you can use below filter:

add_filter('rtmedia_uploader_before_start_upload_button','add_custom_message');

function add_custom_message(){
	return "Custom Message of your choice";
}

If you want to select any other place to display this message, you can find other filters in file here :

Thank you.

Hi @pranalipatel Thanks alot for your fast answer. I’m impressed. Is that right that I have to place the filter in the RTMediaUploadView.php?

Kind regards

You are welcome @Jan_Hartwig,

No, you need to put the code in your theme’s functions.php file.

Thank you.

PERFECT. Works very well.

Thanking you again.

You are welcome! We are glad to know that your issue has been solved. :slight_smile:

I am closing this thread now.

Regards,

Pranali