Avoid CORS phonegap issues
Possibly working file upload solution