Fixing cordovas camera API for correct collaboration with FileUploadServlet