uploads bugfix

fixed 2 bugs with the file upload component