Cannot add images/binary files

Bug #861447 reported by Carl Leitner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iHRIS Common
Fix Committed
Medium
Carl Leitner
4.1
Fix Committed
Medium
Carl Leitner

Bug Description

Cannot add images/binary files to 4.1

Carl Leitner (litlfred)
Changed in ihris-common:
assignee: nobody → Carl Leitner (litlfred)
importance: Undecided → Medium
Revision history for this message
Carl Leitner (litlfred) wrote :
Download full text (4.3 KiB)

The issue is with getting the tmp key. The $_FILES array looks like this:

 (
     [forms] => Array
         (
             [name] => Array
                 (
                     [person_photo_passport] => Array
                         (
                             [0] => Array
                                 (
                                     [0] => Array
                                         (
                                             [fields] => Array
                                                 (
                                                     [image] => Array
                                                         (
                                                             [file] => car_lights.JPG
                                                         )
                                                 )
                                         )
                                 )
                         )
                 )
             [type] => Array
                 (
                     [person_photo_passport] => Array
                         (
                             [0] => Array
                                 (
                                     [0] => Array
                                         (
                                             [fields] => Array
                                                 (
                                                     [image] => Array
                                                         (
                                                             [file] => image/jpeg
                                                         )
                                                 )
                                         )
                                 )
                         )
                 )
             [tmp_name] => Array
                 (
                     [person_photo_passport] => Array
                         (
                             [0] => Array
                                 (
                                     [0] => Array
                                         (
                                             [fields] => Array
                                                 (
                                                     [image] => Array
                                                         (
                                                             [file] => /tmp/phptS4g9J
                                                         )
                                                 )
                                         )
                                 )
                         )
                 )
             [error] => Array
                 (
                     [person_photo_passport] => Array
                         (
                             [0] => Array
                                 (
                                     [0] => Array
                                         (
                                             [fields] => Array
                                                 (
                                                     [image] => Array
                  ...

Read more...

Carl Leitner (litlfred)
Changed in ihris-common:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.