The PEAK Developers' Center   HelpOnActions/AttachFile UserPreferences
HelpContents Search Diffs Info Edit Subscribe XML Print View Up
The following 227 words could not be found in the dictionary of 50 words (including 50 LocalSpellingWords) and are highlighted below:
After   An   Any   Attach   Atttach   Changes   Clicking   Configuration   Creating   Denial   Do   Draw   Editing   Enabling   File   For   Help   If   In   Instead   Java   Linking   Name   On   Otherwise   Plugin   Plugins   Python   Recent   Rename   Saving   See   Self   Service   Since   The   This   To   Unlike   Upload   abused   action   add   addition   administrator   after   all   allow   also   an   and   any   applet   are   as   at   attached   attachment   attachments   attacks   automatically   be   behaviour   below   blank   bottom   break   built   by   can   case   change   changes   click   clicking   computer   conflict   consist   content   copy   could   create   deletion   details   detected   diagrams   difference   different   directly   displayed   displaying   displays   do   draw   drawing   drawings   easily   edit   editing   either   enabled   existing   explained   ext   extension   fields   file   filename   files   first   follows   for   form   generated   get   has   have   highlighted   history   how   if   in   inline   inlined   input   instead   interactively   is   it   just   keep   kind   lead   left   lets   like   link   links   local   looking   means   multiple   name   need   never   new   next   no   normal   not   of   on   one   only   optional   or   original   other   otherwise   overwrite   own   page   pages   peer   picture   picturename   pictures   possible   reconfigurations   refer   reflected   rename   results   revert   review   rules   same   save   saved   saving   second   section   see   shown   simple   since   so   source   sources   specify   store   subject   syntax   than   that   the   then   there   these   they   third   this   though   three   thus   to   tries   two   type   under   upload   uploads   use   used   using   vandalism   vector   via   view   want   which   while   will   with   works   you   your  

Clear message

1 Enabling the AttachFile action

The AttachFile action lets a page have multiple attached files. Since file uploads could be abused for DoS (Denial of Service) attacks, AttachFile is an action that has to be enabled by the wiki administrator. See [Self]Configuration of MoinMoin for details.

2 Creating attachments

To create a new attachment, you can either add an attachment link to any page (see below on how to do that), or click on the AtttachFile link at the bottom of the page. In the first case, you will see an Upload new attachment link after saving the page. Clicking on it will lead you to the upload page, just like directly clicking on the AttachFile link.

The upload form consist of three fields, in addition to the file input there are two optional fields, one to specify a MIME type for the file (which will be detected automatically otherwise), the second to store the file under a different name than on your own computer.

An upload will never overwrite an existing file. If there is a name conflict, you have to rename the file that you want to upload. Otherwise, if "Rename to" is left blank, the original filename will be used.

Any upload or deletion of attachments is reflected on RecentChanges and thus subject to peer review. Unlike page changes, there is no history though, so keep a local copy of files so you can revert possible vandalism.

3 Linking to attachments

To refer to attachments on a page, use attachment:filename.ext; a link of this kind follows all the rules for normal links, i.e. pictures are automatically inlined. Do not use the URL of the [get] link you can see on the attachments upload page, since these links are subject to change and can break easily on reconfigurations of the wiki. To refer to files attached to other pages, use attachment:WikiName/filename.ext.

Instead of attachment:, you can also use inline:, which tries to inline the attachment's content. For pictures there is no difference. For Python sources (i.e. attachments with a .py extension), they are shown as syntax-highlighted source displays. For all other files, the behaviour is the same as for simple attachment: links.

The third type of link is drawing:, explained in the next section.

4 Editing vector drawings

A link looking like drawing:picturename will allow you to interactively edit vector diagrams via the built-in Java applet. The applet will then store two attachments, "picturename.draw" and "picturename.gif". After you first saved a drawing, the generated GIF picture is displayed for the drawing: link. This means that you only need Java enabled for editing, while displaying the results works with any browser.

To edit a drawing after the first save, click on AttachFile and use the [edit] link that is displayed instead of [view] for the .draw attachment. Saving a drawing is reflected in RecentChanges.

For details on using the drawing applet, see [TWiki]Plugins/TWikiDrawPlugin.


EditText of this page (last modified 2007-03-26 18:37:42)
FindPage by browsing, title search , text search or an index
Or try one of these actions: AttachFile, DeletePage, LikePages, LocalSiteMap, SpellCheck