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
 [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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-30 13:20 UTC] stas@php.net
Fixed in CVS, please confirm.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 12:01:36 2019 UTC