Difference: TWikiUIUploadDotPm (1 vs. 5)

Revision 52010-05-29 - TWikiContributor

Line: 24 to 24
 
hidefile if defined, will not show file in attachment table
filepath  
Added:
>
>
filepath1  
| filepath2 | | upto | filepath9 | | upto
 
filename  
filecomment comment to associate with file in attachment table
createlink if defined, will create a link to file at end of topic
Line: 35 to 38
 'noredirect' parameter is specified, in which case it will print a message to STDOUT, starting with 'OK' on success and 'ERROR' on failure.
Added:
>
>
Your form should be defined similar to following:
....
 

Revision 42008-01-22 - TWikiContributor

Line: 7 to 7
 

StaticMethod attach ($session)

Changed:
<
<
upload command handler.
>
>
attach command handler.
 This method is designed to be
Changed:
<
<
invoked via the TWiki::UI::run method.
>
>
invoked via the UI::run method.
 
Changed:
<
<
Adds the meta-data for an attachment to a toic. Does not upload the attachment itself, just modifies the meta-data.
>
>
Generates a prompt page for adding an attachment.
 
Line: 20 to 19
  upload command handler. This method is designed to be
Changed:
<
<
invoked via the TWiki::UI::run method.
>
>
invoked via the UI::run method.
 CGI parameters, passed in $query:

hidefile if defined, will not show file in attachment table
filepath  
filename  
Changed:
<
<
filecomment Comment to associate with file in attachment table
>
>
filecomment comment to associate with file in attachment table
 
createlink if defined, will create a link to file at end of topic
changeproperties  
Added:
>
>
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.
 
Changed:
<
<
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
>
>
Does the work of uploading a file to a topic. Designed to be useable for a crude RPC (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.

Revision 22006-10-25 - TWikiContributor

Line: 10 to 10
 This method is designed to be invoked via the TWiki::UI::run method.
Changed:
<
<
Attach a file to a topic. CGI parameters are:

filename Name of attachment
skin Skin(s) to use in presenting pages
>
>
Adds the meta-data for an attachment to a toic. Does not upload the attachment itself, just modifies the meta-data.
 
Line: 31 to 29
 
createlink if defined, will create a link to file at end of topic
changeproperties  
Added:
>
>
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.
 

Revision 12006-02-01 - TWikiContributor

Line: 1 to 1
Added:
>
>

Package TWiki::UI::Upload

UI delegate for attachment management functions

StaticMethod attach ($session)

upload command handler. This method is designed to be invoked via the TWiki::UI::run method.

Attach a file to a topic. CGI parameters are:

filename Name of attachment
skin Skin(s) to use in presenting pages

StaticMethod upload ($session)

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  
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding URCS? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiUIUploadDotPm.