Ignore:
Timestamp:
08/09/11 17:14:05 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #2199 - Corrigido bug para criar e mover arquivos dentro do filemanager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/filemanager/inc/upload.php

    r3897 r4915  
    3333$path                                   = $_POST['path']; 
    3434$notifUser                              = $_POST['notifTo']; 
    35 $show_upload_boxes      = count($_FILES['upload_file']['name']); 
    36 $filesUpload                            = $_FILES['upload_file']; 
     35$show_upload_boxes              = count($_FILES['upload_file']['name']); 
     36$filesUpload                    = $_FILES['upload_file']; 
    3737 
    3838function create_summaryImage($file) 
     
    121121                { 
    122122                        $badchar = $bo->bad_chars( $_FILES['upload_file']['name'][$i], True, True ); 
    123                          
     123 
    124124                        if( $badchar ) 
    125125                        { 
     
    165165                                $bo->vfs->cp($tmp_arr); 
    166166                                $tmp_arr=array( 
    167                                                 'string'=> $_FILES['upload_file']['name'][$i], 
    168                                                 'relatives'     => array(RELATIVE_ALL), 
     167                                                'string'                => $_FILES['upload_file']['name'][$i], 
     168                                                'relatives'             => array(RELATIVE_ALL), 
    169169                                                'attributes'    => array( 
    170                                                         'owner_id' => $bo->userinfo['username'], 
    171                                                         'modifiedby_id' => $bo->userinfo['username'], 
    172                                                         'size' => $_FILES['upload_file']['size'][$i], 
    173                                                         'mime_type' => $_FILES['upload_file']['type'][$i], 
    174                                                         'deleteable' => 'Y', 
    175                                                         'comment' => stripslashes($_POST['upload_comment'][$i]) 
     170                                                'owner_id'              => $bo->userinfo['username'], 
     171                                                'modifiedby_id' => $bo->userinfo['username'], 
     172                                                'size'                  => $_FILES['upload_file']['size'][$i], 
     173                                                'mime_type'             => $_FILES['upload_file']['type'][$i], 
     174                                                'deleteable'    => 'Y', 
     175                                                'comment'               => stripslashes($_POST['upload_comment'][$i]) 
    176176                                        ) 
    177177                                ); 
     
    191191                                ))) 
    192192                                { 
    193                                         $bo->vfs->set_attributes(array( 
     193                                $bo->vfs->set_attributes(array( 
    194194                                                        'string'                => $_FILES['upload_file']['name'][$i], 
    195195                                                        'relatives'     => array(RELATIVE_ALL), 
    196196                                                        'attributes'    => array( 
    197                                                                 'mime_type'     => $_FILES['upload_file']['type'][$i], 
    198                                                                 'comment'       => stripslashes($_POST['upload_comment'][$i]) 
     197                                                        'mime_type'     => $_FILES['upload_file']['type'][$i], 
     198                                                        'comment'       => stripslashes($_POST['upload_comment'][$i]) 
    199199                                                        ) 
    200200                                        )); 
     
    218218                        $bo->vfs->set_attributes(array( 
    219219                                        'string'                => $_FILES['upload_file']['name'][$i], 
    220                                         'relatives'     => array(RELATIVE_ALL), 
     220                                        'relatives'             => array(RELATIVE_ALL), 
    221221                                        'attributes'    => array( 
    222                                                                                 'mime_type'     => $_FILES['upload_file']['type'][$i], 
    223                                                                                 'comment'       => stripslashes($_POST['upload_comment'][$i]) 
     222                                        'mime_type'     => $_FILES['upload_file']['type'][$i], 
     223                                        'comment'       => stripslashes($_POST['upload_comment'][$i]) 
    224224                                        ) 
    225225                        )); 
Note: See TracChangeset for help on using the changeset viewer.