refactoring file upload, development discussions