API17

JFile::upload

From Joomla! Documentation

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JFile::upload[edit]

Description[edit]

Moves an uploaded file to a destination folder.


public static function upload (
        $src
        $dest
        $use_streams=false
)
Parameter Type Default Description
$src string The name of the php (temporary) uploaded file
$dest string The path (including filename) to move the uploaded file to
$use_streams false
  • Returns boolean True on success
  • Defined on line 374 of libraries/joomla/filesystem/file.php
  • Since Joomla 11.1

See also[edit]


User contributed notes[edit]

Code Examples[edit]