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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Custom Uploadify button


Go to End


2 Posts   4219 Views

Avatar
BlueO

Community Member, 52 Posts

18 January 2012 at 2:34pm

Hi there,
I'm using UploadifyField in the front end of one of our forms and i'm having trouble customising the size of the 'Browse' button.

I've tried to manipulate the style of the surrounding html elements but the button (i.e. the clickable area) stays the size of the Uploadify.swf object.

Would anyone be able to give me some insight as to how to make a larger button?

Cheers

Bernard

Avatar
BlueO

Community Member, 52 Posts

19 January 2012 at 9:26am

OK, found the answer to my question (I love it how that happens soon after you think you've tried everything and write a post...)

anyway for those who come across this - in uploadify.js (see the readable version uploadify.src.js) there are some options to change the uploadify.swf size:

height          : 30, // The height of the flash button
width           : 120, // The width of the flash button