protected static UploadFileResponse UploadTemporaryFile(BoxManager manager, byte[] fileContent, long folderID) { string tempFileName = Path.GetTempFileName(); System.IO.File.WriteAllBytes(tempFileName, fileContent); return manager.AddFile(tempFileName, 0); }