TappNetwork / laravel-uppy-s3-multipart-upload

Multipart Uploads using Laravel, AWS S3, and Uppy
MIT License
69 stars 18 forks source link

Other s3 Providers? #12

Open alexhackney opened 2 years ago

alexhackney commented 2 years ago

I tried to get this to work with DigitalOcean and I can't seem to. It continues to post to s3 even when I update the aws_url to something else. Is it possible to make this work?

Reached commented 2 years ago

Hi @alexhackney,

I had the same request as you, but I ended up just making some changes to the source files (will probably fork the package eventually, or submit a PR to make it slightly more configurable):

In UppyS3MultipartController.php: change the storage disk to your disk name and the bucket:

public function __construct()
    {
        $this->client = Storage::disk('testdisk')->getClient();

        $this->bucket = config('filesystems.disks.testdisk.bucket');
    }