laravel-doctrine / extensions

Extensions integration for Doctrine2 and Laravel
http://laraveldoctrine.org/
MIT License
48 stars 24 forks source link

change save method uploadable listener #56

Open ablashimov opened 2 years ago

ablashimov commented 2 years ago

Hi, how can i change saving files to amazon s3 for exmaple. In UploadableListener method look as public function doMoveFile($source, $dest, $isUploadedFile = true) { return $isUploadedFile ? @move_uploaded_file($source, $dest) : @copy($source, $dest); } is any chance to override this method ?

dpslwk commented 2 years ago

This is just a wrapper around https://github.com/doctrine-extensions/DoctrineExtensions So better to look at the docs https://github.com/doctrine-extensions/DoctrineExtensions/blob/main/doc/uploadable.md
and ask over there

Matt

On 18 Jun 2022, at 20:30, ablashimov @.***> wrote:

 Hi, how can i change saving files to amazon s3 for exmaple. In UploadableListener method look as public function doMoveFile($source, $dest, $isUploadedFile = true) { return $isUploadedFile ? @move_uploaded_file($source, $dest) : @copy($source, $dest); }

is any chance to override this method ?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.