Changeset 1741 for sandbox/filemanager/inc
- Timestamp:
- 12/03/09 10:31:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/inc/upload.php
r1694 r1741 95 95 { 96 96 97 $bo->vfs->cp(array(97 if ($bo->vfs->cp(array( 98 98 'from'=> $_FILES['upload_file']['tmp_name'][$i], 99 99 'to'=> $_FILES['upload_file']['name'][$i], 100 100 'relatives' => array(RELATIVE_NONE|VFS_REAL, RELATIVE_ALL) 101 )); 102 103 $bo->vfs->set_attributes(array( 104 'string'=> $_FILES['upload_file']['name'][$i], 105 'relatives' => array(RELATIVE_ALL), 106 'attributes'=> array( 101 ))) 102 $bo->vfs->set_attributes(array( 103 'string'=> $_FILES['upload_file']['name'][$i], 104 'relatives' => array(RELATIVE_ALL), 105 'attributes'=> array( 107 106 'mime_type' => $_FILES['upload_file']['type'][$i], 108 107 'comment' => stripslashes($_POST['upload_comment'][$i]) 109 108 ) 110 109 )); 110 else{ 111 $_SESSION['phpgw_info']['filemanager']['user']['messages'][] = lang('Error:').lang('Your quota has exceeded the limit'); 112 return false; 113 } 111 114 112 $_SESSION['phpgw_info']['filemanager']['user']['messages'][] = lang('Created %1,%2', $_FILES['upload_file']['name'][$i], $ _FILES['upload_file']['size'][$i])."\n";115 $_SESSION['phpgw_info']['filemanager']['user']['messages'][] = lang('Created %1,%2', $_FILES['upload_file']['name'][$i], $bo->borkb($_FILES['upload_file']['size'][$i]))."\n"; 113 116 } 114 117 } … … 129 132 )); 130 133 131 $_SESSION['phpgw_info']['filemanager']['user']['messages'][] = lang('Created %1,%2', $_FILES['upload_file']['name'][$i], $ file_size[$i])."\n";134 $_SESSION['phpgw_info']['filemanager']['user']['messages'][] = lang('Created %1,%2', $_FILES['upload_file']['name'][$i], $bo->borkb($file_size[$i]))."\n"; 132 135 133 136 }
Note: See TracChangeset
for help on using the changeset viewer.