PHP Manual

PHP function move_uploaded_file()

2019-09-11T08:04:03.000Z

Obsah článku

Availability in versions: PHP 4.0.3

Moves an uploaded file to a new location

Parameters

Parameter Data type Default value Note
$filename string not The filename of the uploaded file.
$destination string not The destination of the moved file.

Return values

bool

If filename is not a valid upload file,
then no action will occur, and
move_uploaded_file will return
false.



If filename is a valid upload file, but
cannot be moved for some reason, no action will occur, and
move_uploaded_file will return
false. Additionally, a warning will be issued.

Other resources

Official move-uploaded-file documentation

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
240.

V jiných jazycích

Status:
All systems normal.
2025