The IFileContentProvider type exposes the following members.

Methods

  Name Description
Public method AllowOverwrite
Indicates if file rewrite is allowed.
Public method CopyDirectory
Copies a directory.
Public method CreateFolder
Creates a folder. Simpler version of the method contained in the FileSystemContentProvider, used outside the file admin screens.
Public method FormatUrl
Formats full URL for files managed by a provider. Full URL is very different when a file is using a standard MonoX content provider (usually begins with ~/) when compared to a URL required by services like Amazon S3 (fully qualified URLs starting with http://...)
Public method GetDefaultUserUploadPath
Retrieves default upload path for per-user uploads.
Public method GetFile
Gets file from storage.
Public method GetFileName
Gets filename.
Public method GetTargetFilePath
Returns the target file path - where the file will be stored after the secondary upload. For standard file system provider it is equal to the path returned by the GetUploadFilePath; for Amazon S3 it is the full object path.
Public method GetUniqueTargetFilePath
Returns unique target file path - where the file will be stored after the secondary upload. For standard file system provider it is equal to the path returned by the GetUploadFilePath; for Amazon S3 it is the full object path.
Public method GetUploadFilePath
Returns the file path where the file will be stored prior to upload to services such as Amazon S3. For the standard file system provider return the real upload location, as there will not be any secondary uploads.
Public method MoveDirectory
Moves a directory.
Public method MoveFile
Moves a file.
Public method ObjectExists
Checks if a file system object exists.
Public method ParseUploadFolder
Parses the upload folder and replaces the placeholders ({id}, {username}, {userid}) with appropriate values.
Public method PhysicalPathToUrl
Returns an URL that matches the physical path that is passed as a parameter.
Public method RemoveDirectory
Removes a directory.
Public method RemoveFile
Removes a file.
Public method RemoveRelatedFiles
Removes all files that match the path pattern.
Public method ResolveDirectory
Resolves a directory.
Public method StoreFile
Saves a file.
Public method UrlToPhysicalPath
Returns a physical path for a given formatted URL.

See Also