[wp-trac] [WordPress Trac] #38119: File is not getting uploaded if the error field in $uploads array is blank

WordPress Trac noreply at wordpress.org
Wed Sep 21 11:49:35 UTC 2016


#38119: File is not getting uploaded if the error field in $uploads array is blank
--------------------------+-----------------------------
 Reporter:  PranaliPatel  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Upload        |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello,

 $uploads variable ( at wordpress/wp-admin/includes/file.php - line number
 - 364) contains below array values when user uploads the file.


 {{{
 Array (
         [path] => /path/to/your/file
         [url] => /url
         [subdir] => /2010/05
         [basedir] => /path/to/wordpress/wp-content/uploads
         [baseurl] => http://example.com/wp-content/uploads
         [error] =>
     )
 }}}

 If the [error] field contains empty value then the file won't be uploaded
 because it checks for the below condition :

 {{{
 false === $uploads['error']
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38119>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list