Loading...
 
Skip to main content

Unziped files in filegallery has no category

Status
Open
Subject
Unziped files in filegallery has no category
Version
4.x
Category
  • Usability
Feature
File Gallery (elFinder or standard UI)
Submitted by
HobbyBlobby
Lastmod by
HobbyBlobby
Rating
(0)
Description

When you upload an zip file into file gallery and choose "unzip zip files" the checkbox to choose a catagory has no effect. It would be nice, that all extracted files have the choosen category.

I use TikiWiki 4.2.

Workaround

In lib/filegals/filegallib.php I added the following lines between "$fileId = $this->insert_file(...)" and "unlink ($extract_dir.$file)" (around line 400):

Insertations
Copy to clipboard
global $tikilib,$formId,$_REQUEST; $foo = parse_url($_SERVER["REQUEST_URI"]); $foo1 = str_replace("tiki-upload_file", "tiki-download_file", $foo["path"]); $url_browse = $tikilib->httpPrefix() . $foo1; $cat_type = 'file'; $cat_objid = $fileId; $cat_desc = substr($description, 0, 200); $cat_name = $name; $cat_href = $podCastGallery ? '' : $url_browse . "?fileId=" . $fileId; $cat_object_exists = (bool) $fileId; include('categorize.php');


A very temporary solution.

Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3086
Created
Thursday 18 March, 2010 20:46:05 UTC
by HobbyBlobby
LastModif
Sunday 28 March, 2010 12:58:09 UTC


Show PHP error messages