bugfix in file upload controller