=====Files Action Documentation===== This the documentation page for the Files action. <<==Note== If the WikkaWiki directory tree is copied or moved from an old system to another system that has SELinux enabled (enforcing) then the copied/moved files and directories may not have the correct SELinux context types. If this is the case, the ##""{{files}}""## action could be prevented from working correctly by SELinux enforcement even if the owner and permissions are already set correctly. The ##actions/files/files.php## script file (and possibly other .php files in the WikkaWiki install directory) must have the SELinux context type ##httpd_sys_script_exec_t## to permit use of the PHP file creation routines. Without the correct context on the script, file uploads may fail. From the wiki base install directory, check for the correct SELinux context by entering the command: %% ls -Z actions/files/files.php %% If the listed SELinux security context type is not ##httpd_sys_script_exec_t##, change it with the command: %% chcon -t httpd_sys_script_exec_t actions/files/files.php %% Assuming the permissions and owner on the ##uploads## directory are correct, the entire ##uploads## directory tree must have the ##httpd_sys_script_rw_t## SELinux context type so that scripts (.php files) running in the web server process are allowed read/write access. Check this with the command: %% ls -dZ uploads %% If the listed SELinux security context type is not ##httpd_sys_script_rw_t##, change it with the command: %% chcon -R -t httpd_sys_script_rw_t uploads %% //Thanks to Mike Shultz and [[http://www.mediawiki.org/wiki/SELinux#Uploading_Images]]// << >>**See | also** [[http://wikkawiki.org/Mod015fFilesAction Mod for the files action]] For the development page, take a look at [[http://wikkawiki.org/FilesAction | FilesAction]]. [[http://wikkawiki.org/FilesActionSafeModeWorkaround | FilesActionSafeModeWorkaround]]>>::c:: ===Documentation=== ==Short description== Allows admins to manage files (upload, deletion) and everyone to view a list of them or download them. Or it provides a download-link to a single file. ==Parameters== ""
name | type | required? | default | description |
---|---|---|---|---|
download | string | optional | prints a link to the file specified in the string | |
text | string | optional | a text for the link provided with the parameter "download" |