php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16122 FileUpload: $userfile can work, but $_REQUEST["userfile"] can't
Submitted: 2002-03-17 00:16 UTC Modified: 2002-03-17 02:37 UTC
From: ddtsearch at mail2000 dot com dot tw Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.1.1 OS: Win2000pro + IIS5
Private report: No CVE-ID: None
 [2002-03-17 00:16 UTC] ddtsearch at mail2000 dot com dot tw
when handling upload files (use the example in the PHP manual)
is_upload_file($userfile) returns true
but if I use is_upload_file($_REQUEST["userfile"]), it returns false

$userfile = $_REQUEST["userfile"], isn't it ?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-17 00:54 UTC] ddtsearch at mail2000 dot com dot tw
move_uploaded_file() also has same problem!
 [2002-03-17 02:37 UTC] sniper@php.net
Use $_FILES['userfile']['tmp_name']. 

Also, read this page:
http://www.php.net/manual/en/features.file-upload.php

Not a bug.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 11:01:33 2025 UTC