xdan / jodit-connectors

Official Jodit connectors
GNU General Public License v2.0
24 stars 18 forks source link

file overwritten if same name #22

Open s-renier-taonix-fr opened 2 years ago

s-renier-taonix-fr commented 2 years ago

Hi!

Is it possible to have an option so that a file is not overwritten when uploading a file with an existing name? Ideally, the new file should be named automatically with a suffix like "_copy" or the current datetime.

xdan commented 1 year ago

Hi, added option in config

s-renier-taonix-fr commented 1 year ago

It doesn't work. In fact, I can't find any occurrence of "saveSameFileNameStrategy" in the code except in the "Readme"

xdan commented 1 year ago

This repository contains only the code that deploys the application to your backend; all logic is in its deps in jodit/application https://github.com/xdan/jodit-connector-application package, just update it

composer upgrade jodit/application
s-renier-taonix-fr commented 1 year ago

Yes I know.

But I figured out the problem now: The docker image used in this project is "chialab/php:7.2-fpm". This release contains a version of "composer" which only installs version "3.0.33" of the "jodit-application" dependency.

I went to the "chialab/php:8.0-fpm" image and it's ok now, the "saveSameFileNameStrategy" configuration option is taken into account. And I find many occurrences of this option in "jodit-application".

Thank you for your help. You can archive this message.