The IFileContentProvider type exposes the following members.
Methods
Name | Description | |
---|---|---|
AllowOverwrite |
Indicates if file rewrite is allowed.
|
|
CopyDirectory |
Copies a directory.
|
|
CreateFolder |
Creates a folder. Simpler version of the method contained in the FileSystemContentProvider, used outside the file admin screens.
|
|
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://...)
|
|
GetDefaultUserUploadPath |
Retrieves default upload path for per-user uploads.
|
|
GetFile |
Gets file from storage.
|
|
GetFileName |
Gets filename.
|
|
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.
|
|
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.
|
|
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.
|
|
MoveDirectory |
Moves a directory.
|
|
MoveFile |
Moves a file.
|
|
ObjectExists |
Checks if a file system object exists.
|
|
ParseUploadFolder |
Parses the upload folder and replaces the placeholders ({id}, {username}, {userid}) with appropriate values.
|
|
PhysicalPathToUrl |
Returns an URL that matches the physical path that is passed as a parameter.
|
|
RemoveDirectory |
Removes a directory.
|
|
RemoveFile |
Removes a file.
|
|
RemoveRelatedFiles |
Removes all files that match the path pattern.
|
|
ResolveDirectory |
Resolves a directory.
|
|
StoreFile |
Saves a file.
|
|
UrlToPhysicalPath |
Returns a physical path for a given formatted URL.
|