modified upload view to update file when id is provided

just to check I'm in the right direction... pretty straightforward, but might be enough ?