Revision [7227]
This is an old revision of AttachmentInfo made by NilsLindenberg on 2005-04-13 15:48:25.
Files
This is the documentation of how to manage files with wikka .
- For the development page, take a look at FilesAction.
- For a info about the version of the {{files}} action currently included in Wikka, look at Mod015fFilesAction.
You can manage files attached to wikka by inserting the action {{files}} on a page.
Requirements
- a directory for the files has to exist.
- the entry upload_path in the wikka.config.php has to have to same name.
- the web server has to be able to write to the upload_path.
Upload a file
- click on the "Browse..." button to search for a file.
- select a file on your computer (you can only select one) .
- the name shopuld appear in the box right next to add new attachment.
- click on the "+".
- if you can see the file in the list, your upload was sucessfull.
Upload and use images (with enabled mod_rewrite)
If you upload an imagefile with the files-action (see above on how to do that) and you have mod_rewrite enabled, you won't see the file. There is a solution for that:- create one page in which you put the file-action. On this page, you should only upload images and no other files
- upload an image
- copy .htaccess from the /images directory of wikka into uploads/YourPagename
Since the files (images) in this directory will be accessible now, i.e. you aren't redirected to wikka, it is a bad idea to upload anything else then files on this page.
Show files
- look at the list to see the files attached to wikka, their size and the date they have been added.
Download a file
- click on the name of a file to download it.
or
- insert {{Files download="filename" text="descriptive name"}} to create a link to download file "filename".
Delete a file
- look for the file you want to delete in the list.
- click on the small "x" before the file.
Example
Please make sure that the server has write access to a folder named uploads.
CategoryDocumentation