note 51024 added to features.file-upload

From: Date: Thu, 17 Mar 2005 01:06:59 +0000
Subject: note 51024 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-86571@lists.php.net to get a copy of this message
I have a form where I want people to be able to upload a file or post a URL, and then the php deals with it accordingly, but for some reason php only gives whatever is to the right of the last '/'. For instance, if someone were to paste 'http://www.google.com/gmail' into the file box and submit it, the $_FILES['userfile']['name'] only contains 'gmail'. Is there some way to turn this off? I realize it's probably for security reasons, but still there should be a way to turn it off for people that know what they're doing. ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51024 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51024&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51024&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51024&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51024&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51024&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51024&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86571) next »