Ignore:
Timestamp:
03/22/11 18:19:49 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #1660 - Enviar arquivos pelo filemanager, tratado o erro para o php.

File:
1 edited

Legend:

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

    r3610 r3889  
    11<?php 
    2 session_id($_GET['id']); 
     2 
     3session_id( $_GET['id'] ); 
    34session_start(); 
    4 setcookie('jupload',$_GET['id'], time()+3600); 
     5setcookie( 'jupload', $_GET['id'], time()+3600 ); 
    56 
    67include 'jupload.php'; 
    7 function handle_uploaded_files($juploadPhpSupportClass, $files) { 
     8 
     9function handle_uploaded_files($juploadPhpSupportClass, $files)  
     10{ 
    811        return 
    912                "<P>We are in the 'handle_uploaded_files' callback function, in the index.php script. To avoid double coding, we " 
     
    1316 
    1417} 
     18 
     19// Set Max File Size 
     20$maxFileSize = "10M"; 
     21 
     22if ( file_exists('setFileMaxSize.php') ) 
     23{ 
     24        require_once('setFileMaxSize.php'); 
     25        $maxFileSize  = unserialize(base64_decode($SET_FILE_MAX_SIZE)); 
     26        $maxFileSize  = trim($maxFileSize)."M"; 
     27} 
     28 
    1529$appletParameters = array( 
    16     'maxFileSize' => '5G', 
    17     'maxChunkSize' => '1600000', 
    18         'archive' => '../tp/juploader/wjhk.jupload.jar', 
    19         'afterUploadURL' => 'after_upload.php', 
    20         'sendMD5Sum' => 'true', 
    21         'showLogWindow' => 'false', 
    22         'debugLevel' => 0  
    23 ); 
     30                                                        'maxFileSize' => $maxFileSize, 
     31                                                        'maxChunkSize' => '1600000', 
     32                                                        'archive' => '../tp/juploader/wjhk.jupload.jar', 
     33                                                        'afterUploadURL' => 'after_upload.php', 
     34                                                        'sendMD5Sum' => 'true', 
     35                                                        'showLogWindow' => 'false', 
     36                                                        'debugLevel' => 0  
     37                                                ); 
     38 
    2439$classParameters = array( 
    25         'demo_mode' => false, 
    26         'allow_subdirs' => true, 
    27         'destdir' => '/tmp'  //Where to store the files on the webserver  
    28 ); 
     40                                                        'demo_mode' => false, 
     41                                                        'allow_subdirs' => true, 
     42                                                        'destdir' => '/tmp'  //Where to store the files on the webserver  
     43                                                ); 
    2944 
    3045$juploadPhpSupportClass = new JUpload($appletParameters, $classParameters); 
     
    3348echo '<div align="left"><!--JUPLOAD_APPLET--></div>'; 
    3449 
    35  
    3650?> 
Note: See TracChangeset for help on using the changeset viewer.