Changed to fileupload for cordova