jargoud / laravel-backpack-dropzone

Dropzone field for Laravel Backpack
MIT License
2 stars 1 forks source link

override path where the file is saved #4

Open TiesTheunissen opened 4 months ago

TiesTheunissen commented 4 months ago

i would like to add in the config destination_path options

jargoud commented 3 months ago

Hello,

This package relies on pionl/laravel-chunk-upload, so maybe can you solve your problem by setting this package's configuration according to your needs.

The code where this configuration is used looks like:

\Storage::disk(config('chunk-upload.storage.disk'))->path($filePath);

And the configuration itself is:

<?php
/**
 * @see https://github.com/pionl/laravel-chunk-upload
 */

return [
    /*
     * The storage config
     */
    'storage' => [
        /*
         * Returns the folder name of the chunks. The location is in storage/app/{folder_name}
         */
        'chunks' => 'chunks',
        'disk' => 'local',
    ],
   // ...
];

So, if you define a new disk in your filesystems configuration, you may be able to do what you're intending to do :)

Jeremy