PHP code example of yunusemrebaloglu / chunk-upload

1. Go to this page and download the library: Download yunusemrebaloglu/chunk-upload 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/ */

    

yunusemrebaloglu / chunk-upload example snippets


Storage::disk('custom_disk')->makeDirectory($model->id . '/files/');

File::move(Storage::disk('The disk name you specified via config')->path($request->file_name), Storage::disk('listing')->path($model->id . '/files/' . $request->file_name));
bash
php artisan vendor:publish --tag=chunk-upload-config
bash
php artisan vendor:publish --tag=chunk-upload-inertia-components
bash
php artisan chunk-upload:delete_files