note 129280 added to function.move-uploaded-file

From: Date: Mon, 26 Feb 2024 09:53:59 +0000
Subject: note 129280 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-221209@lists.php.net to get a copy of this message
Permissions issue. If you have set a setgid I.e g+s on the folder and wondering why the created files are owned by www-data:www-data, note that uploaded files are first saved in /tmp folder with the web user. The move_uploaded_file() command moves the files from /tmp to the given TO directory, including the current permissions the /temp file has. Hence the setgid gets ignored and doesn't inherit the parent permissions. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.131 (proxied: 164.90.217.2) ---- Manual Page -- https://php.net/manual/en/function.move-uploaded-file.php Edit -- https://main.php.net/note/edit/129280 Del: integrated -- https://main.php.net/note/delete/129280/integrated Del: useless -- https://main.php.net/note/delete/129280/useless Del: bad code -- https://main.php.net/note/delete/129280/bad+code Del: spam -- https://main.php.net/note/delete/129280/spam Del: non-english -- https://main.php.net/note/delete/129280/non-english Del: in docs -- https://main.php.net/note/delete/129280/in+docs Del: other reasons-- https://main.php.net/note/delete/129280 Reject -- https://main.php.net/note/reject/129280 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221209) next »