public void SendFileToServer(string url, string fileType, byte[] buf, Action <string> successCallback, Action failCallback, float timeoutSecond = 5f, string prefix = null, bool needDispose = true) { string str = Singleton <PlayerModule> .Instance.playerData.userId.ToString(); string gameVersion = Singleton <NetworkManager> .Instance.GetGameVersion(); string str3 = TimeUtil.Now.ToString("yyyy-MM-dd_HH-mm-ss"); string str4 = string.Format("{0}-{1}-{2}.txt", str, gameVersion, str3); if (!string.IsNullOrEmpty(prefix)) { str4 = string.Format("{0}-{1}", prefix, str4); } Dictionary <string, string> dictionary2 = new Dictionary <string, string>(); dictionary2.Add("File-Type", fileType); dictionary2.Add("File-Name", str4); Dictionary <string, string> headers = dictionary2; Singleton <ApplicationManager> .Instance.applicationBehaviour.StartCoroutine(Miscs.WWWRequestWithTimeOut(url, successCallback, failCallback, timeoutSecond, buf, headers, needDispose)); }