Angularjs pi-upload bug fixed