php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5836 uploading files: *_type wont have the right count
Submitted: 2000-07-28 15:41 UTC Modified: 2000-07-30 13:20 UTC
From: wico at cnh dot nl Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (28/07/2000) OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wico at cnh dot nl
New email:
PHP Version: OS:

 

 [2000-07-28 15:41 UTC] wico at cnh dot nl
if you use a mutliple uploads form (say 3 uploads) and you wil only fill in upload2 in the browser
the arrays *, *_name and *_size has 3 items and *_type will have one :

var_dumps after doing the above: 

// *
array(3) {
  [0]=>
  string(4) "none"
  [1]=>
  string(14) "/tmp/phpCiTyX5"
  [2]=>
  string(4) "none"
}

// *_name
array(3) {
  [0]=>
  string(0) ""
  [1]=>
  string(10) "Status.htm"
  [2]=>
  string(0) ""
}

// *_size
array(3) {
  [0]=>
  int(0)
  [1]=>
  int(1845)
  [2]=>
  int(0)
}

// *_type
array(1) {
  [0]=>
  string(9) "text/html"
}

this should be:

// *_size
array(3) {
  [0]=>
  string(0) ""
  [1]=>
  string(9) "text/html"
  [2]=>
  string(0) ""
}

Greetz,

Wico

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-30 13:20 UTC] stas@php.net
Fixed in CVS, please confirm.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 11:01:30 2025 UTC