in the middle of refactoring the multiple file upload