Test upload with phonegap