more bugs squashed for angular file upload