Jun 15, 2026

PmWiki

PmWiki

pmwiki.org

edit SideBar

Search

アップロード

authors (intermediate)

Note: PmWiki is distributed with uploads disabled by default. See Uploads Admin? for information about how to enable and configure the upload feature.

補足: PmWikiã¯æ¨™æº–ã§ã¯ã‚¢ãƒƒãƒ—ロード機能を無効ã«ã—ã¦ã„ã¾ã™ã€‚ã‚¢ãƒƒãƒ—ãƒ­ãƒ¼ãƒ‰æ©Ÿèƒ½ã®æœ‰åŠ¹åŒ–ãŠã‚ˆã³è¨­å®šç”¨æ³•ã«ã¤ã„ã¦ã¯ Uploads Admin?ã‚’å‚ç…§ãã ã•ã„。

Attach: Syntax

PmWiki can be configured to allow authors to upload and attach files to pages. Each Wiki Group? can have its own collection of named attachments that are shared among all pages in the group. To add or link to an attachment, an author edits a page to include the markup "Attach:" followed by a name of an attachment (e.g., "Attach:resume.pdf"). When the page is displayed, the Attach: markup becomes one of the following:

PmWikiã¯ã€è‘—者ã«ã‚ˆã‚‹ãƒšãƒ¼ã‚¸ã¸ã®ãƒ•ァイルã®ã‚¢ãƒƒãƒ—ãƒ­ãƒ¼ãƒ‰ã¨æ·»ä»˜ã®è¨­å®šãŒå¯èƒ½ã¨ãªã£ã¦ã„ã¾ã™ã€‚å„Wiki Group?ã¯ã‚°ãƒ«ãƒ¼ãƒ—内ã®å…¨ãƒšãƒ¼ã‚¸é–“ã§å…±é€šã®æ·»ä»˜ãƒ•ァイルåã‚’æŒã¤ã“ã¨ãŒã§ãã¾ã™ã€‚ 添付ファイルã®è¿½åŠ ã‚„ãƒªãƒ³ã‚¯ã«ã¯æ·»ä»˜ãƒ•ァイルåã®å‰ã«"Attache:"ã‚’ã¤ã‘ã¾ã™(例, "Attach:resume.pdf")。ページã®è¡¨ç¤ºã®éš›ã«ã¯Attach:ã¯æ¬¡ã®ã„ãšã‚Œã‹ã«ãªã‚Šã¾ã™ã€‚

  • A link to the named attachment
  • A link to a form whereby the author can specify a file to be uploaded and used as the new attachment
  • If the attachment is an image file such as .gif, .jpg, or .png, then it is displayed as an image?.
  • ファイルã¸ã®ãƒªãƒ³ã‚¯
  • ファイルãŒ.gif, .jpg, .pngã®ã‚ˆã†ãªç”»åƒãƒ•ァイルã®å ´åˆã€ãã®ç”»åƒã‚’表示ã—ã¾ã™ã€‚

To prevent an image attachment from displaying as an image, place it in double brackets (e.g., [[Attach:image.jpg]]).

添付画åƒã‚’ç”»åƒã¨ã—ã¦è¡¨ç¤ºã—ãŸããªã„å ´åˆã€äºŒé‡æ‹¬å¼§ã§ããりã¾ã™(ãŸã¨ãˆã°[[Attach:image.jpg]]ã®ã‚ˆã†ã«)。

To have a link to an attachment appear without the "Attach:" at the beginning of the link, use [[(Attach:)file.ext]].

リンクã®å§‹ã¾ã‚Šã‚’"Attach:"ã§ãªã表示ã™ã‚‹æ·»ä»˜ã¸ã®ãƒªãƒ³ã‚¯ã‚’æŒã¤ãŸã‚ã«ã¯ã€[[(Attach:)file.ext]]を使ã„ã¾ã™ã€‚

To link to attachments on another page or WikiGroup?, use Attach:PageName/file.ext or Attach:Group.PageName/file.ext.

別ã®ãƒšãƒ¼ã‚¸ã‹WikiGroup?ã®æ·»ä»˜ã¸ãƒªãƒ³ã‚¯ã™ã‚‹ã«ã¯ã€Attach:PageName/file.ext ã‹ Attach:Group.PageName/file.extを使ã£ã¦ãã ã•ã„。

To link to an uploaded image from another group, you need to refer to a page within another group, not just the group itself. Thus, Attach:Group.SomePage/image_name.ext. Note, you must use the PageName, but that there is no requirement that the page actually exist.

Listing All Files For A Page

To list all files that have been uploaded to the current page, enter the markup: (:attachlist:)

This will list all files, file size and a link to download the file on the page.

Upload Form / Upload Replacement

One can go directly to the upload form by appending "?action=upload" to the URI for any page that has file uploads enabled by the Wiki Administrator?. Replace a file by simply uploading a new version of the file with the same name. Be sure to clear your browser cache after replacing an upload. Otherwise, it may appear that the original upload is still on the server.

Wiki Administrator? ã«ã‚ˆã£ã¦ãƒ•ァイルアップロードã¯è¨±å¯ã•れã¦ã„ã‚‹å ´åˆã€ã©ã®ãƒšãƒ¼ã‚¸ã§ã‚‚ URI ã« "?action=upload" を追加ã™ã‚‹ã“ã¨ã«ã‚ˆã‚Šã€ã‚¢ãƒƒãƒ—ロードフォームã«ç›´æŽ¥ã€è¡Œãã“ã¨ãŒã§ãã¾ã™ã€‚åŒã˜åå‰ã®æ–°ã—ã„版ã®ãƒ•ァイルをå˜ã«ã€ã‚¢ãƒƒãƒ—ロードã™ã‚‹ã“ã¨ã«ã‚ˆã‚Šã€ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ç½®ãæ›ãˆã¾ã™ã€‚å¿…ãšã‚¢ãƒƒãƒ—ãƒ­ãƒ¼ãƒ‰ã‚’ç½®ãæ›ãˆãŸå¾Œã«ã€ã‚ãªãŸã®ãƒ–ラウザーキャッシュをクリアã™ã‚‹ã‚ˆã†ã«ã—ã¦ãã ã•ã„。ã•ã‚‚ãªã„ã¨ã€æœ€åˆã®ã‚¢ãƒƒãƒ—ロードãŒã¾ã ã‚µãƒ¼ãƒãƒ¼ã«ã‚るよã†ã«è¦‹ãˆã‚‹ã‹ã‚‚ã—れã¾ã›ã‚“。

Type and Size Restrictions

For security reasons, the upload feature is disabled when PmWiki is first installed; once enabled, uploads are generally restricted as to the types and sizes of files that may be uploaded to the server (see UploadsAdmin). PmWiki's default configuration limits file sizes to 50 kilobytes and file extensions to common types such as ".gif", ".jpg", ".doc", ".txt", and ".pdf". In addition, the administrator can configure the system to require an upload password--see Passwords? and PasswordsAdmin?.

セキュリティã®ç†ç”±ã§ã€ã‚¢ãƒƒãƒ—ロード機能ã¯ã€PmWiki ãŒæœ€åˆã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã•ã‚ŒãŸæ™‚ã¯ç„¡åйã«ãªã£ã¦ã„ã¾ã™ã€‚一旦ã€å¯èƒ½ã«ã•れれã°ã€ã‚¢ãƒƒãƒ—ロードã¯ã€ã‚µãƒ¼ãƒãƒ¼ã«ã‚¢ãƒƒãƒ—ロードã•れるã‹ã‚‚ã—れãªã„ファイルã®ã‚¿ã‚¤ãƒ—ãŠã‚ˆã³ã‚µã‚¤ã‚ºã«é–¢ã—ã¦ä¸€èˆ¬ã«åˆ¶é™ã•れã¾ã™(UploadsAdmin を見ã¦ä¸‹ã•ã„)。PmWiki ã®ãƒ‡ãƒ•ォルト構æˆã¯ã€ãƒ•ァイルサイズを50キロãƒã‚¤ãƒˆã¨ã—ã€ãƒ•ァイル拡張å­ã‚’".gif"ã€".jpg"ã€".doc"ã€".txt"ãŠã‚ˆã³ã€".pdf"ã®ã‚ˆã†ãªä¸€èˆ¬ã®ã‚¿ã‚¤ãƒ—ã«åˆ¶é™ã—ã¾ã™ã€‚ã•らã«ã€ç®¡ç†è€…ã¯ã€upload パスワードãŒå¿…è¦ã¨ãªã‚‹ã‚ˆã†ã«ã‚·ã‚¹ãƒ†ãƒ ã‚’æ§‹æˆã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ -- Passwords? 㨠PasswordsAdmin? を見ã¦ä¸‹ã•ã„。

By default the upload allows the following extensions:

   'gif','jpg','jpeg','png','bmp','ico','wbmp',          # images
   'mp3','au','wav',                                     # audio
   'mpg','mpeg','wmf','mov','qt','avi',                  # video
   'zip','gz','tgz','tar','rpm','hqx',                   # archives
   'doc','ppt','xls','exe','mdb',                        # MSOffice
   'pdf','psd','ps','ai','eps',                          # Adobe
   'htm','html','fla','swf',                             # web stuff
   'txt','rtf','exe','tex','dvi',''                      # misc

Removal

At present uploaded files can only be deleted from the server by the wiki administrator?. Any uploads-authorized user may over-write an existing file by uploading another of the same name and extension to the same location.

ç¾åœ¨ã€ã‚¢ãƒƒãƒ—ロードã•れãŸãƒ•ァイルã¯ã€wiki administrator? ã«ã‚ˆã£ã¦ã‚µãƒ¼ãƒãƒ¼ã‹ã‚‰å‰Šé™¤ã•れるã“ã¨ãŒã§ãã‚‹ã ã‘ã§ã™ã€‚ã©ã‚“ãªã‚¢ãƒƒãƒ—ロードをèªå¯ã•れãŸãƒ¦ãƒ¼ã‚¶ã‚‚ã€åŒã˜å ´æ‰€ã«åŒã˜åå‰ã¨æ‹¡å¼µå­ã®åˆ¥ã®ã‚‚ã®ã®ã‚¢ãƒƒãƒ—ロードã«ã‚ˆã‚Šæ—¢å­˜ã®ãƒ•ァイルを上書ãã—ã¦ã‚‚よã„ã§ã™ã€‚

<< Uploads? | ドキュメント目次 | WikiStyles? >>

Page Actions

Recent Changes

Group & Page

Back Links