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
- 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):
InsertationsCopy to clipboardglobal $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+
-
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
- 3086
- Created
- Thursday 18 March, 2010 20:46:05 UTC
by HobbyBlobby - LastModif
- Sunday 28 March, 2010 12:58:09 UTC