ideas
ideas copied to clipboard
Uploading file with same name - offer replace option
When you add files with a file name that exists you always get an „The file exists and cannot be overwritten“ error.
The „Replace“ option in the context menu of a single file does nothing at all.
Hm, it seems to be an issue with your setup. I just checked in a fresh starterkit and it works there. Do you have any special plugins or permissions that could lead to this problem?
User permissions? No, only admin status. I use the Kirby Builder Plugin – have to admit, I did not try it without the plugin. I did try it in 3 different installations, but all with 3.2 + Builder.
I'll investigate further.
I checked it with a fresh starterkit as well. Added a „simple page“, added images.
When I try to replace a file via the context menu of the filelist, nothing happens. When I open the file (in the panel) and use the context menu there it works.
I use the built-in apache server on a Mac (High Sierra). When I add a new Kirby installation I am asked to change the file permission of media / accounts / sessions and content to use the panel. I've read (https://getkirby.com/docs/guide/troubleshooting/installation#subpages-and-files-not-working) that folders should have 755 permissions which doesn't work in this setup, maybe that's the problem? But a) this never was an issue before and b) why does just one context menu work?
@bastianallgeier i reproduced this issue on 3.2.2 StarterKit
When i drag and drop to images
area, i got The file exists and cannot be overwritten
error.
But i select replace
from context menu, works properly like @saschabregenhorn said.
Actually, I think the current process is correct.
Because I can upload a file of the same name without seeing the name of the current files in panel and this may cause an error that irrevocable (like losing original content).
If I will/want update the file, clicking to replace from context menu
is a natural behavior.
We can enhance this in such a way:
By clicking on the "add file" or "drag and drop" the file can be warned if there is a file with the same name, Overwrite File
can be confirmed like that if possible:
Cool idea. Maybe, there could even be shown a thumbnail of the file the user is about to overwrite.
This could (in the future) even be a solution when uploading multiple files: multiselect list of all the already existing files and the user can select which ones to replace.
@moritzebeling Let's take one step after the other ;)