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).

$chunkOrFileExists

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 38
bool authorize()

Determine if the user is authorized to make this request.

Return Value

bool

at line 50
array rules()

Get the validation rules that apply to the request.

Return Value

array

at line 74
protected void prepareForValidation()

Prepare the data for validation.

Return Value

void

at line 90
void withValidator(Validator $validator)

Configure the validator instance.

Parameters

Validator $validator

Return Value

void

at line 196
string getFilePath()

Get the full path where the file should be stored.

Return Value

string

at line 213
string sanitizePrefix(string $prefix)

Sanitize the path prefix.

Parameters

string $prefix

Return Value

string

at line 228
bool isChunked()

Determine if the file is a chunked upload.

Return Value

bool