move upload code for assets to AssetsView
STUD-1523