This bug report has been created to emphasise the need for an option to manage duplicates when using the Tiki console to import files
Fixing it by really rejecting the upload of a duplicate file will be quit bad as it will make the automatisation of the upload unusable for many case (files can't be updated with a new version).
Using the Tiki Console you can import files from a batch upload folder.
php7.4 console.php files:batchupload 5 --subdirToSubgal --createSubgals --confirm
You can automatise the task using the Tiki Scheduler.
Displayed message in the shell and the scheduler about duplicate is not true.
error: Duplicate file found as `49456187_a.jpg`. Upload rejected. error: Duplicate file found as `49456187_b.jpg`. Upload rejected. error: Duplicate file found as `49456187_c.jpg`. Upload rejected. error: Duplicate file found as `49456187_d.jpg`. Upload rejected. error: Duplicate file found as `49456187_e.jpg`. Upload rejected. error: Duplicate file found as `49456187_f.jpg`. Upload rejected. error: Duplicate file found as `49456187_g.jpg`. Upload rejected. error: Duplicate file found as `49456187_h.jpg`. Upload rejected. error: Duplicate file found as `49456187_i.jpg`. Upload rejected.
But in reality the files are created and duplicates just accumulates with the same name without limit. (there 3 pages like this)
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |