New parameter to set by default (for all new gallery) the maximum of version (archive) per file.
- Status
- Closed
- Subject
- New parameter to set by default (for all new gallery) the maximum of version (archive) per file.
- Version
- 21.x
- Category
- Usability
- Feature
- Console / Command Line
File Gallery (elFinder or standard UI) - Resolution status
- Duplicate
- Submitted by
- Bernard Sfez / Tiki Specialist
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Related-to
- Description
Explaining the way to reproduce the issue;
Using a default Tiki21;
Set storage to use directory
Enable batch-upload and set the batch-upload directoryUpload folders with files in the batch-upload directory
Run the following in your terminal (change the fileId for the gallery you want):php console.php files:batchupload 1 --subdirToSubgal --createSubgals —confirm
It will create the subgalleries and place the files in each subgalleries.
You’ll have 1 file in your file directory for 1 file in your file galleries.Redo the same operation with the same files and folder.
It will add a version to the previous files.
You’ll have 2 files in your file directory for 1 file in your file galleries.Etc... It will add a file each time.
You may want only to store 1 file (especially if you have automatic script running that is the most important reason to use the console command)
How to limit the number of stored file per file in the file galleries.In each file gallery subdirectory there is a setting "Maximum number of archives for each file" that is set to 0 (meaning unlimited).
As the file subgalleries are created by the console.php they are create by default with unlimited.
We need a way to set the value by default for all new created subgalleries.I suggest a new parameter to set by default (for all new gallery) the maximum of version (archive) per file.
Eventually a parameter to override it in the console.php command.- Importance
- 6
- Easy to solve?
- 7
- Priority
- 42
- 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
- 7286
- Created
- Monday 24 February, 2020 09:50:03 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Tuesday 23 August, 2022 12:39:12 UTC