note 60644 added to features.file-upload

From: Date: Thu, 12 Jan 2006 23:01:48 +0000
Subject: note 60644 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-101666@lists.php.net to get a copy of this message
In regards to geert dot php at myrosoft dot com about having the filenames cut off if single quotes are present in the filename, I had this same problem. The solution to this, is to set magic_quotes_gpc to off. When magic_quotes_gpc is on, whenever a single quote is present in any _post data, a \ is inserted before any single quotes as an escape character. This comes in handy if you're storing the post data into mySQL, but causes problems, as you've had, when receiving an upload. ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60644 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60644&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60644&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60644&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60644&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60644&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60644&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60644&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60644&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101666) next »