PHP code example of peinhu / aetherupload-webman

1. Go to this page and download the library: Download peinhu/aetherupload-webman library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

peinhu / aetherupload-webman example snippets


'video' => [
    'group_dir'                    => 'video',
    'resource_maxsize'             => 0,
    'resource_extensions'          => [],
    'event_before_upload_complete' => false, 
    'event_upload_complete'        => false,
],

\AetherUpload\Util::deleteResource($savedPath); //删除对应的资源文件
\AetherUpload\Util::deleteRedisSavedPath($savedPath); //删除对应的Redis秒传记录

'middleware_download' => [app\middleware\MiddlewareA::class,app\middleware\MiddlewareB::class],

'event_before_upload_complete' => true, 
'event_upload_complete'        => true,

0 0 * * * php /项目根目录的绝对路径/webman aetherupload:clean 1> /dev/null 2>&1  

0 0 * * * php /项目根目录的绝对路径/webman aetherupload:build 1> /dev/null 2>&1