Loading...
 
Skip to main content

Console, Batch upload; Additional parameter in the console to deal with duplicate files import

Status
Open
Subject
Console, Batch upload; Additional parameter in the console to deal with duplicate files import
Version
25.x
Category
  • Feature request
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
(0)
Related-to
Description

Using the batchupload command on the console it should be possible to set what to do when there is a duplicate file detected, when you upload a file with the same name than a file that is already in the file gallery.

--duplicatedFileReplacesPrevious
To replace the file with the new one and delete the previous.

--duplicatedFileIgnored
To Ignore new one if a file with the same name is already there.
It seems it should be the default, but it is not applied (tested on Tiki22, 23 and 24)

Additionally the process allow a file gallery to be created if it doesn't exist;
--createSubgals
Providing the value for "Maximum number of archives for each file" in newly created file gallery.
--createdSubgalMaxNumArchives=1

Importance
6
Easy to solve?
5
Priority
30
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7598
Created
Sunday 08 November, 2020 12:58:40 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Tuesday 23 August, 2022 12:38:45 UTC


Show PHP error messages