# Package =TWiki::UI::Upload UI delegate for attachment management functions
## [[StaticMethod]] **attach** `($session)` `attach` command handler. This method is designed to be invoked via the `UI::run` method. Generates a prompt page for adding an attachment. ## [[StaticMethod]] **upload** `($session)` `upload` command handler. This method is designed to be invoked via the `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 |
|
redirectto |
URL to redirect to after upload. {AllowRedirectUrl} must be enabled in configure . The parameter value can be a TopicName , a Web.TopicName , or a URL. Redirect to a URL only works if it is enabled in configure . |