some initial prototyping of adding an upload url and providing a summary and applicable options
initial refactoring, reorganising and cleaning up of upload code and logic wrt to files and urls