Safe Mode move_uploaded_file error
Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is xyz is not allowed to access…
I get a
move_uploaded_file error when trying to upload a file or image.
Your hosting company has set PHP’s upload_tmp_dir setting incorrectly. You’ll need to ask them to fix it.
The upload_tmp_dir setting must refer to a filesystem directory that is accessible and writable by the PHP server process. In Safe Mode, upload_tmp_dir must be within open_basedir. See here and here for technical information.