upload rewritten using method from storage Repository, storage read from Settings, creating file reference simplified