HTML5: Cross-site HTTP requests with credentials: https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS#Requests_with_credentials
Flash: Check, if object, returned by getFile() in UploadProcess event, is not undefined