A two step upload directive for Angular JS.