예제 #1
0
        /// <summary>
        ///     Save file
        /// </summary>
        /// <param name="storeId">Store unique identifier</param>
        /// <param name="fileid">File unique identifier</param>
        /// <param name="fileName">File Name</param>
        /// <param name="stream">File stream instance</param>
        /// <returns>Returs true if file saved successfully</returns>
        public static bool SaveFile(long storeId, string fileid, string fileName, FileStream stream)
        {
            var diskFileName = fileid + "_" + fileName + ".config";

            DiskStorage.FileVaultUpload(storeId, diskFileName, stream);
            return(true);
        }
예제 #2
0
        /// <summary>
        ///     Save file
        /// </summary>
        /// <param name="storeId">Store unique identifier</param>
        /// <param name="fileId">File unique identifier</param>
        /// <param name="fileName">File name</param>
        /// <param name="fileData">File byte array</param>
        /// <returns>Returns true if the file saved successfully</returns>
        public static bool SaveFile(long storeId, string fileId, string fileName, byte[] fileData)
        {
            var diskFileName = fileId + "_" + fileName + ".config";

            DiskStorage.FileVaultUpload(storeId, diskFileName, fileData);
            return(true);
        }
예제 #3
0
        /// <summary>
        ///     Save file
        /// </summary>
        /// <param name="storeId">Store unique identifier</param>
        /// <param name="fileid">File unique identifer</param>
        /// <param name="fileName">File name</param>
        /// <param name="file"><see cref="HttpPostedFile" /> instance</param>
        /// <returns>Returns true if file saved successfully</returns>
        public static bool SaveFile(long storeId, string fileid, string fileName, HttpPostedFile file)
        {
            var diskFileName = fileid + "_" + fileName + ".config";

            DiskStorage.FileVaultUpload(storeId, diskFileName, file);
            return(true);
        }