public static string UploadFileWithParams(string address, IEnumerable <object> files, NameValueCollection values) { IFileUploader uploader = FileUploaderFactory.CreateFileUploader(); try { byte[] response = uploader.UploadFiles(address, files, values); uploader.CloseStreams(files); return(Encoding.Default.GetString(response)); } catch { return("CONNECTION_FAIL"); } }