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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ddtsearch at mail2000 dot com dot tw
New email:
PHP Version: OS:

 

 [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 12:01:34 2025 UTC