Getting xdomain and file uploads to work.