Gen. partnerAlgotech

PHP function move_uploaded_file()

Moves an uploaded file to a new location

|
September 11, 2019

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

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.