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)
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |