changed upload to Angular way