updated angular upload code