コード例 #1
0
ファイル: demo.php プロジェクト: 283541486/kaixinwa2.0
    $options = array(ALIOSS::OSS_FILE_DOWNLOAD => "download path", ALIOSS::OSS_RANGE => '0-1');
    $response = $client > get_object($bucket_name, $object_name, $options);
}
$a = $_GET['a'];
switch ($a) {
    case 1:
        uploadDir($oss, $bucket);
        break;
    case 2:
        fenduan($oss, $object, $bucket, $upload_file);
        break;
    case 3:
        get_obj_list($oss, $bucket, $options);
        break;
    case 4:
        create_obj($oss, $bucket);
        break;
    case 5:
        ajax_upload($oss, $bucket);
        break;
    case 6:
        ajax_response();
        break;
}
function ajax_upload($oss, $bucket)
{
    $object = $_FILES['file']['name'];
    $upload_file = $_FILES['file']['tmp_name'];
    echo fenduan($oss, $object, $bucket, $upload_file);
}
function ajax_response()
コード例 #2
0
 * the U.S. Army Research Laboratory.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * version 2.1 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this file; see the file named COPYING for more
 * information.
 */
/** @file geometry_viewer/create_obj.php
 *
 */
include 'accounts/auth.php';
include 'functions.php';
include 'config.php';
$dbFileName = $_POST['db'];
$entity = $_POST['en'];
create_obj($dbFileName, $entity, $uploadPath, $objPath, $gobjPath, $normTol);
/*                                                                    
 * Local Variables:                                                   
 * mode: PHP                                                            
 * tab-width: 8
 * End:                                                               
 * ex: shiftwidth=4 tabstop=8                                         
 */