API17

JFile::upload

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

Description

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


User contributed notes

Code Examples


Advertisement