Skip to main content

FilesUploadContext

Assembly: ServiceStack.dll
View Source
Declaration
public readonly struct FilesUploadContext

Properties

Request

The current HTTP Request

View Source
Declaration
public readonly IRequest Request { get; }

Dto

The Request DTO

View Source
Declaration
public readonly object Dto { get; }

File

The file to upload

View Source
Declaration
public readonly IHttpFile File { get; }

FileName

The Uploaded file name

View Source
Declaration
public readonly string FileName { get; }

FileExtension

The Uploaded file extension

View Source
Declaration
public readonly string FileExtension { get; }

DateSegment

Date String Formatted as 'yyyy/MM/dd'

View Source
Declaration
public readonly string DateSegment { get; }

Feature

The FilesUploadFeature Plugin

View Source
Declaration
public readonly FilesUploadFeature Feature { get; }

Location

The UploadLocation used for this upload

View Source
Declaration
public readonly UploadLocation Location { get; }

Session

The User Session associated with this Request

View Source
Declaration
public readonly IAuthSession Session { get; }

UserAuthId

The Authenticated User Id

View Source
Declaration
public readonly string UserAuthId { get; }

Methods

GetDto<T>()

The Request DTO explicitly casted to a strong Type

View Source
Declaration
public readonly T GetDto<T>()
Returns

<T>

Type Parameters
  • T

GetLocationPath(String)

View Source
Declaration
public readonly string GetLocationPath(string relativePath)
Returns

System.String

Parameters
TypeName
System.StringrelativePath