UploadLocation
Assembly: ServiceStack.dll
View Source
Declaration
public class UploadLocation
Properties
Name
View Source
Declaration
public string Name { get; set; }
VirtualFiles
View Source
Declaration
public IVirtualFiles VirtualFiles { get; set; }
ReadAccessRole
View Source
Declaration
public string ReadAccessRole { get; set; }
WriteAccessRole
View Source
Declaration
public string WriteAccessRole { get; set; }
AllowExtensions
View Source
Declaration
public HashSet<string> AllowExtensions { get; set; }
AllowOperations
View Source
Declaration
public FilesUploadOperation AllowOperations { get; set; }
MaxFileCount
View Source
Declaration
public int? MaxFileCount { get; set; }
MinFileBytes
View Source
Declaration
public long? MinFileBytes { get; set; }
MaxFileBytes
View Source
Declaration
public long? MaxFileBytes { get; set; }
ResolvePath
View Source
Declaration
public Func<FilesUploadContext, string> ResolvePath { get; set; }
ValidateUpload
View Source
Declaration
public Action<IRequest, IHttpFile> ValidateUpload { get; set; }
ValidateDownload
View Source
Declaration
public Action<IRequest, IVirtualFile> ValidateDownload { get; set; }
ValidateDelete
View Source
Declaration
public Action<IRequest, IVirtualFile> ValidateDelete { get; set; }
TransformFileAsync
Transform the file to upload. Can ignore file upload by returning null.
View Source
Declaration
public Func<FilesUploadContext, Task<IHttpFile>> TransformFileAsync { get; set; }