TWiki
>
TWiki Web
>
TWikiUIUploadDotPm
(revision 2) (raw view)
Edit
Attach
---+ Package =TWiki::UI::Upload= UI delegate for attachment management functions %TOC% ---++ StaticMethod *attach* <tt>($session)</tt> =upload= command handler. This method is designed to be invoked via the =TWiki::UI::run= method. Adds the meta-data for an attachment to a toic. Does *not* upload the attachment itself, just modifies the meta-data. ---++ StaticMethod *upload* <tt>($session)</tt> =upload= command handler. This method is designed to be invoked via the =TWiki::UI::run= method. CGI parameters, passed in $query: | =hidefile= | if defined, will not show file in attachment table | | =filepath= | | | =filename= | | | =filecomment= | Comment to associate with file in attachment table | | =createlink= | if defined, will create a link to file at end of topic | | =changeproperties= | | Does the work of uploading a file to a topic. Designed to be useable as a REST method (it will redirect to the 'view' script unless the 'noredirect' parameter is specified, in which case it will print a message to STDOUT, starting with 'OK' on success and 'ERROR' on failure.
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r2 - 2006-10-25
-
TWikiContributor
TWiki
Log In
or
Register
TWiki Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
LAPPD
Sandbox
TWiki
Copyright © 1999-2025 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.TWikiUIUploadDotPm
.