DokuWiki

It's better when it's simple

User Tools

Site Tools


media_manager

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
media_manager [2012-11-03 15:21]
– old revision restored (2012/10/19 18:11) HåkanS
media_manager [2017-06-05 16:50]
– [The Media Manager] 65.51.37.52
Line 1: Line 1:
 ====== The Media Manager ====== ====== The Media Manager ======
  
-[[Images]] and other media files can be uploaded and inserted through a simple media manager. To open the media manager click the {{http://www.dokuwiki.org/lib/images/toolbar/image.png?nolink}} button in the page editing [[toolbar]].+[[Images]] and other media files can be uploaded and inserted through a simple media manager. To open the media manager click the {{https://www.dokuwiki.org/lib/images/toolbar/image.png?nolink}} button in the page editing [[toolbar]]. When you want to manage media, but have no need for inserting media links, you can use the [[fullscreen mediamanager]] too.
  
 Browse the available namespace by clicking their name in the left pane. Namespaces can be expanded by a click on the **+** button right next to the namespace name. Browse the available namespace by clicking their name in the left pane. Namespaces can be expanded by a click on the **+** button right next to the namespace name.
Line 36: Line 36:
 Below the uploadform comes a listing with available mediafiles. For each file there is a line with a file type icon, the file name, and some **toolbar buttons (5)**. The following buttons may be available depending on the file type and your permissions: Below the uploadform comes a listing with available mediafiles. For each file there is a line with a file type icon, the file name, and some **toolbar buttons (5)**. The following buttons may be available depending on the file type and your permissions:
  
-|{{http://www.dokuwiki.org/lib/images/magnifier.png?nolink}}| View or download the file | +| {{http://www.dokuwiki.org/lib/images/magnifier.png?nolink}}  | View or download the file                           
-|{{http://www.dokuwiki.org/lib/images/trash.png?nolink}}    | Delete the file           +| {{http://www.dokuwiki.org/lib/images/trash.png?nolink}}      | Delete the file                                     
-|{{http://www.dokuwiki.org/lib/images/pencil.png?nolink}}    | Edit the [[exif|metadata]] of the file (JPEG only) |+| {{http://www.dokuwiki.org/lib/images/pencil.png?nolink}}     | Edit the [[exif|metadata]] of the file (JPEG only)  |
  
 The file may be followed by a **thumbnail (6)** and a preview of the **metadata (7)**. [[EXIF]] metadata editing is currently only supported for JPEG files. The file may be followed by a **thumbnail (6)** and a preview of the **metadata (7)**. [[EXIF]] metadata editing is currently only supported for JPEG files.
-===== Problems and discussion ===== 
-  * Hi ! how integrate the new media manager (3 colums) with the new dokuwiki version ? I still have the old one and I cannot upload file anymore (I clic on the download button but nothing happen) ! 
-  * Hi! I have problem with media manager in my dokuwiki. When I try to open it in one particular namespace, it ends with error (''Connection closed by remote server. You tried to access the address https://www.fit-wiki.cz/lib/exe/mediamanager.php?ns=%C5%A1kola%3Ap%C5%99edm%C4%9Bty%3Abi-sap, which is currently unavailable. Please make sure that the web address (URL) is correctly spelled and punctuated, then try reloading the page.''). When I try to open media manager in any other namespace and show content of the namespace mentioned above, nothing is showed (parts 3--7 in [[media_manager#layout|layout]] are blank). This problem appears only at one particular namespace, others work fine. I don't see any differences between this and the others namespaces' permission. Can anybody help me? Any advice where to look? \\ **__Answer:__** Double-check your ACL rules.  Failing that, check your .htaccess file(s) within the appropriate (sub)folder(s). \\ **__Answer didn't help:__** I checked ACL and that is ok. In given directory there is no .htaccess - there is one in superior directory but that one is common for more directories (namespaces) and uploading works in the others. Any other idea? 
-  * Hello - my users don't seem to be able to upload files (the UI for adding media isn't there) so I'm guessing theres a permission problem. However, I've scoured the Admin page and can't find that setting - where can I turn on managing media files for other groups? 
-  * There are two places where the maximum upload size is controlled: Dokuwiki's configuration as above, and also your php.ini file. On my Linux (Gentoo) system, the file to be looking at is /etc/php/apache2-php5/php.ini, and you need to check two values: upload_max_filesize and post_max_size. Both of these need to be above your desired max upload size, and both can be specified either as integer bytes or using shorthand like 500K, 20M, 1G. Not setting either of these high enough will cause the upload to silently fail, though you should see an error in /var/log/apache2/error.log. 
-  * :?: How to create/delete media namespaces? (They are different from page namespaces). On my wiki there are a bunch of media namespaces, but I can't see how to create a new one \\ **__Answer:__** Creating a new namespace is easy, just prepend your new namespace name to the filename. After you've done this, you will be able to swicth context/focus to that new namespace in the media manager and continue uploading. \\ For example,  lets assume you have a namespace called "downloads" and you want to add a new namespace within that one called "documents". With the context/focus on "downloads" in the media manager, you simply would browse for your file as usual and then enter :documents:yourfilenamehere.doc and your new namespace is created.  You can, of course, do this from the root of your site as well; the process is similar. Also, if you later want to remove a namespace, all you need to do is delete the files within it and it will be removed for you. (This can happen if you don't set your namespaces up properly and later want to move files around as a result). 
  
-  * :?: I've noticed that if your "Access Control Lists" (ACLs ) are set up in such a way that the highest permission granted to a user or group for a given namespace is "Upload"then these users **will not** see or otherwise be able to select the "Overwrite File" option\\ I would __REALLY__ like to be able to prevent certain users from "Deleting" content, yet still allow them to "Overwrite/Replace" certain media. \\ **//Does anyone know if this is possible, or would this need to be an enhancement to the ACL permissions?//** //--Rick  (March 1, 2011)// +===== Problems ===== 
-    * I dunno if that really makes senseThere is no saved history for media so if people overwrite, then the old version is completely lostYou might as well allow them to delete as well because there'no damage they could cause that couldn'be dealt by overwriting//--Mark  (March 1, 2011)//+ 
 +===My users don't seem to be able to upload files=== 
 +When they haven'the UI for adding media, it's probably a permission problem. See the [[ACL]] manager please, here you set upload and remove permissions, for media you need to set them for the wanted namespaces.  
 + 
 +===How to enlarge Maximum upload size?=== 
 +See [[faq:uploadsize|FAQ: Maximum Upload File Size]] 
 + 
 +===How to create media namespaces?=== 
 +Creating new namespace is easyjust prepend your new namespace name to the filenamee.g. '':documents:yourfilenamehere.doc'' creates new namespace ''documents''
 + 
 +When you want to create the namespace in your filesystem look for the directory ''data/media/''
 + 
 +===How to remove media namespaces=== 
 +Remove all content within it and it will be removed for you. 
 + 
 +===Can I give users overwrite option without delete permissions?=== 
 +NoBy using overwriting you can do the same as by deleting. 
 + 
 +===How do I manage hundreds and more of images?=== 
 +When a flat organisation is not enough you can introduce extra namespaces in your current media namespaceIt'fine to have media namespaces that don'exist as page namespaces.
    
-      * :?: have lot of images (hundreds up to thousands in any namespace)The flat organisation is not enough for me. What can i do? (without additional namespaces) + 
-  * :?**Upload size trouble**. Although //php.ini// is configured as [[faq:uploadsize]] tells, I'm still not able to upload files bigger than approximately 1M. For example, with 6M file, connexion resets like 3 times in the middle of the uploading, then fails completely. Files of any extension of the order of kilobytes upload just fine. +===My server settings are too restrictive. Can use traditional uploader?==      
-    * :?: Same problem here. phpinfo tells me that my limit post and filesize are at 50 MB, but still all uploads of files bigger 1M get "Failed" as status. Cannot see any more detailed error anywhere. Nothing in the error-logs. :( **UPDATE** found the error in FCGI and updated http://www.dokuwiki.org/faq:uploadsize +At the moment this isn't possible\\ 
-      * :?: Yesme too! Only noticed it since installing Anguathough... What is FCGI? Did you mean you've found a solution?? --Yi (January 302012+Either there is a no-javascript failback and [[http://bugs.dokuwiki.org/index.php?do=details&task_id=2406|FS#2406]] is about implementing this as option.  
-  * :?: I am not able to select any file. If I click on a file just nothing happens! I don't think that this behaviour is caused by my Firefox because when I try it on another DokuWiki installation selection works fine. + 
-  * :?: I have the same problem as the person right above.  AndMM may show only one of several uploaded images or it may show twobut doesn't reliably show all that were uploaded to that namespace.  I've checked -- the files are where they should be, and I can manually insert all the images, whether MM shows them or not. +=== How to move media files to another namespace === 
-  * :!: Please add configuration to be able to select/use the traditional file uploads. (Refer the issue [[http://bugs.dokuwiki.org/index.php?do=details&task_id=2406|FS#2406]]) + 
 +You may consider using the [[plugin:move|Move plugin]] 
 + 
 +=== How to hide the media manager link when user is not registered or only have view access (default template) === 
 + 
 +see [[http://stackoverflow.com/questions/15589912/dokuwiki-how-can-i-hide-media-manager-link-from-non-logged-in-users]] 
 + 
 + 
 +<code> 
 +<?php 
 +                if ($INFO['isadmin']) { 
 +                    tpl_action('recent'1, 'li'); //recent changes 
 +                    tpl_action('media', 1'li'); //media manager 
 +                    tpl_action('index', 1, 'li'); //sitemap 
 +                } 
 +            ?> 
 +</code>
media_manager.txt · Last modified: 2022-03-17 15:14 by 109.200.196.114

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki