Fixed an issue with failing uploads if the widget is initially collapsed.