class StoreStorageRequestFile extends FormRequest

Properties

StorageRequest $storageRequest

Storage request to which the file should be uploaded.

StorageRequestFile $storageRequestFile

The file that belongs to a chunked upload (if any).

Methods

bool
authorize()

Determine if the user is authorized to make this request.

array
rules()

Get the validation rules that apply to the request.

void
prepareForValidation()

Prepare the data for validation.

void
withValidator(Validator $validator)

Configure the validator instance.

string
getFilePath()

Get the full path where the file should be stored.

string
sanitizePrefix(string $prefix)

Sanitize the path prefix.

bool
isChunked()

Determine if the file is a chunked upload.

Details

at line 36
bool authorize()

Determine if the user is authorized to make this request.

Return Value

bool

at line 48
array rules()

Get the validation rules that apply to the request.

Return Value

array

at line 71
protected void prepareForValidation()

Prepare the data for validation.

Return Value

void

at line 87
void withValidator(Validator $validator)

Configure the validator instance.

Parameters

Validator $validator

Return Value

void

at line 190
string getFilePath()

Get the full path where the file should be stored.

Return Value

string

at line 207
string sanitizePrefix(string $prefix)

Sanitize the path prefix.

Parameters

string $prefix

Return Value

string

at line 222
bool isChunked()

Determine if the file is a chunked upload.

Return Value

bool