Added support for multiple upload buttons.