UploadForm


Answering a query posed at http://www.pmichaud.com/pipermail/pmwiki-users/2006-August/031266.html :

(:input form method=post enctype=multipart/form-data :)
(:input hidden name=n value={$FullName}:)
(:input hidden name=action value=postupload:)
||width=*
|| File to upload:||(:input file name='uploadfile':) ||
|| Name of upload:||(:input text name='upname':) (:input submit value="$[Upload]":) ||
(:input end:)

File to upload:
Name of upload:
(:include Site/UploadQuickReference##quickreferenceend:)

----

Uploads

  1. Use the button above to find the "File to upload" on your local computer.
  2. For the "Name attachment as:" field, enter the name you prefer the file to have once it has been uploaded to the site.
    This can be the same as its filename on your source disk or it can be different, but make sure it has the correct file extension.
  3. Press "Upload" to upload the file.
  4. To refer to an attachment within a wiki page in this Test WikiGroup, simply enter Attach:filename.ext in the page text.
  5. After uploading, you can

!! Existing Uploads for {$FullName}
(:attachlist {$FullName}:)

Existing Uploads for Test.UploadForm

Attachment list only accessible to pmwiki.org editors.


(:Attachlist *:)
----
(:Attachlist PITS:)

Attachment list only accessible to pmwiki.org editors.


Attachment list only accessible to pmwiki.org editors.

 0: 00.00 00.00 EnablePost = 1, keys=
 1: 00.00 00.00 config start
 2: 00.01 00.01 config end
 3: 00.04 00.03 MarkupToHTML begin
 4: 00.04 00.03 MarkupToHTML begin
 5: 00.05 00.04 MarkupToHTML end
 6: 00.05 00.04 MarkupToHTML begin
 7: 00.05 00.04 PageStore::ls begin wiki.d/{$FullName}
 8: 00.06 00.04 PageStore::ls merge wiki.d/{$FullName}
 9: 00.06 00.05 PageStore::ls end wiki.d/{$FullName}
10: 00.06 00.05 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
11: 00.06 00.05 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
12: 00.06 00.05 PageStore::ls end $FarmD/wikilib.d/{$FullName}
13: 00.09 00.07 MarkupToHTML end
14: 00.09 00.07 MarkupToHTML begin
15: 00.09 00.07 MarkupToHTML end
16: 00.09 00.07 MarkupToHTML begin
17: 00.09 00.08 MarkupToHTML end
18: 00.10 00.08 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
19: 00.10 00.08 ReadApprovedUrls SiteAdmin.ApprovedUrls end
20: 00.10 00.08 MarkupToHTML end
21: 00.11 00.09 MarkupToHTML begin
22: 00.12 00.10 MarkupToHTML end
23: 00.12 00.10 MarkupToHTML begin
24: 00.13 00.11 MarkupToHTML end
25: 00.13 00.11 now
Peak memory: 5,668,336 bytes