Filegallery, Console batch upload; Displayed message about duplicate is wrong
- Status
- Open
- Subject
- Filegallery, Console batch upload; Displayed message about duplicate is wrong
- Version
- 24.x
- Category
- Conflict of two features (each works well independently)
- Consistency
- Feature
- Console / Command Line
File Gallery (elFinder or standard UI) - Resolution status
- New
- Submitted by
- Bernard Sfez / Tiki Specialist
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Related-to
- Description
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.
Copy to clipboardphp7.4 console.php files:batchupload 5 --subdirToSubgal --createSubgals --confirmYou can automatise the task using the Tiki Scheduler.
Displayed message in the shell and the scheduler about duplicate is not true.
Copy to clipboarderror: 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)
- Importance
- 1 low
- Easy to solve?
- 5
- Priority
- 5
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8160
- Created
- Sunday 31 July, 2022 07:06:10 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Sunday 31 July, 2022 07:10:16 UTC