if upload button disabled, use stage size instead of hard-coded size