Fixed #392, #401 & upgraded file upload to latest version.

Updated angular file upload to newest version and done corresponding changes.