Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

(no description)

File Size: 211 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

UploadedFile:: (13 methods):
  __construct()
  setStreamOrFile()
  setError()
  isStringNotEmpty()
  isOk()
  isMoved()
  validateActive()
  getStream()
  moveTo()
  getSize()
  getError()
  getClientFilename()
  getClientMediaType()


Class: UploadedFile  - X-Ref

__construct($streamOrFile,?int $size,int $errorStatus,string $clientFilename = null,string $clientMediaType = null)   X-Ref

param: StreamInterface|string|resource $streamOrFile

setStreamOrFile($streamOrFile)   X-Ref
Depending on the value set file or stream variable

param: StreamInterface|string|resource $streamOrFile

setError(int $error)   X-Ref


isStringNotEmpty($param)   X-Ref
No description

isOk()   X-Ref
Return true if there is no upload error


isMoved()   X-Ref
No description

validateActive()   X-Ref


getStream()   X-Ref
No description

moveTo($targetPath)   X-Ref
No description

getSize()   X-Ref
No description

getError()   X-Ref
No description

getClientFilename()   X-Ref
No description

getClientMediaType()   X-Ref
No description