extensions icon indicating copy to clipboard operation
extensions copied to clipboard

change save method uploadable listener

Open ablashimov opened this issue 3 years ago • 1 comments

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 ?

ablashimov avatar Jun 18 '22 19:06 ablashimov

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.

dpslwk avatar Jun 18 '22 19:06 dpslwk