Difference: FileAttachment (1 vs. 21)

Revision 212014-05-20 - TWikiContributor

Line: 1 to 1
 

File Attachments

Line: 27 to 27
 
  • Click on the Attach link at the bottom of the page. The Attach screen lets you browse for a file, add a comment, and upload it. The uploaded file will show up in the File Attachment table.
    • NOTE: The topic must already exist. It is a two step process if you want to attach a file to a non-existing topic; first create the topic, then add the file attachment.
Added:
>
>
    • TWiki is capable of getting up to 10 files per upload session. Whether you can actually upload multiple files in one go from web user interface depends on skin.
 
    • Any type of file can be uploaded. Some files that might pose a security risk are renamed, ex: *.php files are renamed to *.php.txt so that no one can place code that would be read in a .php file.
    • 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 512000 KB.
Line: 151 to 152
 
    • To change the comment on an attachment, enter a new comment and then click Change properties. Note that the comment listed against the specific version will not change, however the comment displayed when viewing the topic does change.
    • To hide/unhide an attachment, enable the Hide file checkbox, then click Change properties.
Added:
>
>

File names

File systems tend to be liberal about characters used in file names. But there are characters which may cause problems if they are used in a file name of a TWiki attachment. As such, when TWiki saves an uploaded file attachment, it's saved as a file whose name is cleansed to avoid problems. Specifically:

  • Space are replaed by underscores
  • The .txt extension is appended to some filenames for security reasons
  • Characters such as ~, $, @, % are removed
  • Non-ASCII characters are deleted
When an attachment file name is altered by the process above, you are notified
 

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.

Revision 202010-06-23 - TWikiContributor

Line: 1 to 1
 

File Attachments

Line: 82 to 82
 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:
<
<
Topic attachments
I Attachment Action Size Date Who Comment
txttxt Sample.txt manage 0.1 K 22 Jul 2000 - 19:37 TWikiContributor Just a sample
gifgif Smile.gif manage 0.1 K 22 Jul 2000 - 19:38 TWikiContributor Smiley face
<--//twikiAttachments-->
>
>
Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt Sample.txt   manage 0.1 K 2000-07-22 - 19:37 TWikiContributor Just a sample
GIFgif Smile.gif   manage 0.1 K 2000-07-22 - 19:38 TWikiContributor Smiley face
<--//twikiAttachments-->
 

File Attachment Controls

Revision 192010-06-23 - TWikiContributor

Line: 1 to 1
 

File Attachments

Line: 16 to 16
 

File Sharing

Changed:
<
<
  • For file sharing, FileAttachments on a series of topics can be used to quickly create a well-documented, categorized digital download center for all types of files: documents; graphics and other media; drivers and patches; applications; anything you can safely upload!
>
>
  • For file sharing, FileAttachments on a series of topics can be used to quickly create a well-documented, categorized digital download center for all types of files: documents; graphics and other media; drivers and patches; applications; anything you can safely upload!
 

Web Authoring

Line: 41 to 41
 
Changed:
<
<
  • ALERT! NOTE: There is no access control on individual attachments. If you need control over single files, create a separate topic per file and set topic-level access restrictions for each.
>
>
  • ALERT! NOTE: There is no access control on individual attachments. If you need control over single files, create a separate topic per file and set topic-level access restrictions for each.
 

Moving Attachment Files

An attachment can be moved between topics.

  • Click Manage on the Attachment to be moved.
  • On the control screen, select the new web and/or topic.
Changed:
<
<
  • Click Move. The attachment and its version history are moved. The original location is stored as topic Meta Data.
>
>
  • Click Move. The attachment and its version history are moved. The original location is stored as topic Meta Data.
 

Deleting Attachments

Line: 126 to 126
 

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.
Changed:
<
<
  • Attachments are not secured. Anyone can read them if they know the name of the web, topic and attachment.
>
>
  • Attachments are not secured by default. Anyone can read them if they know the name of the web, topic and attachment. Ask your TWiki administrator if TWiki is configured to secure attachments.
 
Changed:
<
<
Related Topics: UserDocumentationCategory
>
>
Related Topics: UserDocumentationCategory, TWikiAccessControl
 
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=""

Revision 182005-03-27 - TWikiContributor

Line: 1 to 1
 

File Attachments

Line: 33 to 33
 
      • 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.
  • 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.
Changed:
<
<
    • To enable this feature, set the {AutoAttachPubDir} configuration option.
>
>
    • To enable this feature, set the {AutoAttachPubFiles} 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

Revision 172005-03-27 - TWikiContributor

Line: 1 to 1
Deleted:
<
<
 
Changed:
<
<

File Attachments

>
>

File Attachments

  Each topic can have one or more files of any type attached to it by using the Attach screen to upload (or download) files from your local PC. Attachments are stored under revision control: uploads are automatically backed up; all previous versions of a modified file can be retrieved.
Added:
>
>
 

What Are Attachments Good For?

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.

Line: 82 to 83
 
Topic attachments
I Attachment Action Size Date Who Comment
Changed:
<
<
txttxt Sample.txt manage 0.1 K 22 Jul 2000 - 19:37 TWikiContributor Just a sample
gifgif Smile.gif manage 0.1 K 22 Jul 2000 - 19:38 TWikiContributor Smiley face
>
>
txttxt Sample.txt manage 0.1 K 22 Jul 2000 - 19:37 TWikiContributor Just a sample
gifgif Smile.gif manage 0.1 K 22 Jul 2000 - 19:38 TWikiContributor Smiley face
 
<--//twikiAttachments-->

File Attachment Controls