FileUpload

FileUpload

TextField

Methods

Inherited from Element
Inherited from Input
Inherited from InputAttributesTrait
Inherited from Element
Inherited from BasicAttributesTrait

accepts

Set an array or CSV string of file extensions accepted by this file input.

FileUpload::accepts( array|string $accepts ): self

Returns Self: This method can be chained.


setAttachment

Set the attachment name and path.

FileUpload::setAttachment( string $name, string $absoluteURL, string $filePath = '' )

setAttachments

Set the attachment name and path.

FileUpload::setAttachments( string $absoluteURL, $attachments )

setDeleteAction

Set the URL to visit if the delete action is clicked.

FileUpload::setDeleteAction( string $actionURL )

setMaxUpload

Set the hidden input MAX_FILE_SIZE in MB and displays the amount (false to disable max upload).

FileUpload::setMaxUpload( string $value ): self

Returns Self: This method can be chained.


canDelete

Sets whether the attachment will have a delete option.

FileUpload::canDelete( boolean $value ): self

Returns Self: This method can be chained.


uploadMultiple

Sets whether the input accepts multiple files.

FileUpload::uploadMultiple( boolean $value = true ): self

Returns Self: This method can be chained.


Last updated : September 15, 2018 b92362d