Difference: FileAttachment (13 vs. 14)

Revision 1427 Mar 2005 - Main.TWikiContributor

Line: 1 to 1
 

File Attachments

Line: 7 to 7
 

What Are Attachments Good For?

Changed:
<
<
File Attachments can be used to create powerful customized groupware solutions, like file sharing and document management systems, and quick Web page authoring.
>
>
File Attachments can be used to archive data, or to create powerful customized groupware solutions, like file sharing and document management systems, and quick Web page authoring.
 

Document Management System

Line: 30 to 30
 
    • The previous upload path is retained for convenience. In case you make some changes to the local file and want to upload it, again you can copy the previous upload path into the Local file field.
    • TWiki can limit the file size. This is defined by the %ATTACHFILESIZELIMIT% variable of the TWikiPreferences, currently set at 120000 KB.
      • ALERT! It's not recommended to upload files greater than a few hundred K through a browser. Large files can be extremely slow-loading, and often time out. Use an FTP site for large file uploads.
Added:
>
>
  • Automatic attachments:
    • When enabled, all files in a topic's attachment directory are shown as attachments to the topic - even if they were directly copied to the directory and never attached by using an 'Attach' link. This is a convenient way to quickly "attach" files to a topic without uploading them one by one; although at the cost of losing audit trail and version control.
    • To enable this feature, set the {AutoAttachPubDir} configuration option.
    • NOTE: The automatic attachment feature can only be used by an administrator who has access to the server's file system.
 

Downloading Files

Line: 54 to 58
 
  • Once a file is attached it can be referenced in the topic. Example:
    1. Attach file: Sample.txt
    2. Edit topic and enter: %ATTACHURL%/Sample.txt
Changed:
<
<
    1. Preview: %ATTACHURL%/Sample.txt text appears as: http://www.twiki.ufba.br/twiki/pub/TWiki/FileAttachment/Sample.txt, a link to the text file.
>
>
    1. Preview: %ATTACHURL%/Sample.txt text appears as: /twiki/pub/TWiki/FileAttachment/Sample.txt, a link to the text file.
 
  • To reference an attachment located in another topic, enter:
Changed:
<
<
    • %PUBURL%/%WEB%/OtherTopic/Sample.txt (if it's within the same web)
    • %PUBURL%/Otherweb/OtherTopic/Sample.txt (if it's in a different web)
>
>
    • %PUBURLPATH%/%WEB%/OtherTopic/Sample.txt (if it's within the same web)
    • %PUBURLPATH%/Otherweb/OtherTopic/Sample.txt (if it's in a different web)
 
  • Attached HTML files and text files can be inlined in a topic. Example:
    1. Attach file: Sample.txt
    2. Edit topic and write text: %INCLUDE{"%ATTACHURL%/Sample.txt"}%
      • Content of attached file is shown inlined.
Changed:
<
<
>
>
 
  • GIF, JPG and PNG images can be attached and shown embedded in a topic. Example:
    1. Attach file: Smile.gif
    2. Edit topic and write text: %ATTACHURL%/Smile.gif
Changed:
<
<
    1. Preview: text appears as Smile.gif, an image.
>
>
    1. Preview: text appears as /twiki/pub/TWiki/FileAttachment/Smile.gif, an image.
 

File Attachment Contents Table

Files attached to a topic are displayed in a directory table, displayed at the bottom of the page, or optionally, hidden and accessed when you click Attach.

Changed:
<
<
>
>
 
Changed:
<
<
Attachment Action Size Date Who Comment
Sample.txt manage 0.1 K 22 Jul 2000 - 19:37 PeterThoeny Just a sample
Smile.gif manage 0.1 K 22 Jul 2000 - 19:38 PeterThoeny Smiley face
>
>
IAttachment Action Size Date Who Comment
txtSample.txt manage 0.1 K 22 Jul 2000 - 19:37 UploadingUser Just a sample
bmpSmile.gif manage 0.1 K 22 Jul 2000 - 19:38 UploadingUser Smiley face
 
Deleted:
<
<
 

File Attachment Controls

Changed:
<
<
Clicking on a Manage link takes you to a new page that looks like this:
>
>
Clicking on a Manage link takes you to a new page that looks a bit like this (depending on what skin is selected):
 
Deleted:
<
<
Attachment Action Size Date Who Comment Attribute
Sample.txt manage 0.1 K 22 Jul 2000 - 19:37 PeterThoeny Just a sample  
Smile.gif manage 0.1 K 22 Jul 2000 - 19:38 PeterThoeny Smiley face  
 

Update attachment Sample.txt

Changed:
<
<
>
>
 
Version Action Date Who Comment
Changed:
<
<
1.1 view 2001.08.30.09.28.56 PeterThoeny  
>
>
1 view 22 Jul 2000 - 19:37 UploadingUser Just a sample
 
Added:
>
>
 

Changed:
<
<
>
>
Previous upload Sample.txt (TWikiContributor) Select a new local file to update this attachment.
 
Changed:
<
<
Previous
upload:
C:\DATA\Sample.txt (PeterThoeny)
>
>
Local file Upload up to 10000 KB.
 
Changed:
<
<
Local file:
>
>
Comment
 
Added:
>
>
 
Changed:
<
<
Comment:
>
>
Link Images will be displayed, for other attachments a link will be created.
 
Changed:
<
<
Link: Create a link to the attached file at the end of the topic.
>
>
Hide file
 
Added:
>
>
Attachments will not be shown in topic view page.
 
Changed:
<
<
Hide file: Hide attachment in normal topic view.
>
>
 
Changed:
<
<
Help text ...

Topic FileAttachment . { | | Move attachment | Cancel }

>
>
 
Line: 161 to 172
 

Known Issues

  • Unlike topics, attachments are not locked during editing. As a workaround, you can change the comment to indicate an attachment file is being worked on - the comment on the specific version isn't lost, it's there when you list all versions of the attachment.
Added:
>
>
  • Attachments are not secured. Anyone can read them if they know the name of the web, topic and attachment.
 
Changed:
<
<
META FILEATTACHMENT attr="" comment="Just a sample" date="964294620" name="Sample.txt" path="C:\DATA\Sample.txt" size="30" user="thoeny" version=""
META FILEATTACHMENT attr="" comment="Smiley face" date="964294680" name="Smile.gif" path="C:\DATA\Smile.gif" size="94" user="thoeny" version=""
>
>
Related Topics: UserDocumentationCategory

META FILEATTACHMENT attr="" comment="Just a sample" date="964294620" name="Sample.txt" path="C:\DATA\Sample.txt" size="30" user="TWikiContributor" version=""
META FILEATTACHMENT attr="" comment="Smiley face" date="964294680" name="Smile.gif" path="C:\DATA\Smile.gif" size="94" user="TWikiContributor" version=""
 
This site is powered by the TWiki collaboration platformCopyright � by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.FileAttachment