示例#1
0
        long SecureUpload(string accessKey, long siteId, long userId, long[] groupIds,
                          string fileTitle, string fileDescription, System.IO.Stream fileStream, string fileName, string size)
        {
            long fileId = _fileLib.Upload(siteId, groupIds, userId, fileTitle, fileDescription, fileName, fileStream, false, size);

            return(fileId);
        }
示例#2
0
        public long SecureUpload(string accessKey, long siteId, long[] groupIds, long userId, string title, string description, string fileFullPath, string fileContent, string size)
        {
            FileLibrary fl = new FileLibrary();

            System.IO.Stream fileStream = new System.IO.MemoryStream(Convert.FromBase64String(fileContent));

            return(fl.Upload(siteId, groupIds, userId, title, description, fileFullPath, fileStream, false, size));
        }