コード例 #1
0
        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);
        }