Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

swfupload module - include file size info on popup


Reply


3 Posts   1211 Views

Avatar
dezmond

Community Member, 17 Posts

20 August 2010 at 10:15pm

I'm sure this is really simple but I can't find a solution. How can i include some additional text on the file upload popup window that appears when swfupload module is installed? I just want it to say something like "max filesize is 500KB", and I don't mind hardcoding this rather than getting the actual max filesize from config.

Cheers.

Avatar
UncleCheese

Forum Moderator, 4094 Posts

21 August 2010 at 1:56am

The super quick way to do it is in your getCMSFields() function:

$size = SWFUploadConfig::get_var('file_size_limit');
SWFUploadConfig::set_var('browse_button_text',"Browse (Max: $size)");

Avatar
dezmond

Community Member, 17 Posts

21 August 2010 at 2:57am

Thank you.