Документ взят из кэша поисковой машины. Адрес оригинального документа : http://dualopt1.cmm.msu.ru/bin/rdiff/TWiki/TWikiUIUploadDotPm?type=last
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 21:58:33 2014
Кодировка:
%TOPICTITLE% (3 vs. 4) - TWiki
Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r4  >  r3  >  r2  >  r1
TWikiUIUploadDotPm 4 - 2008-01-22 - Main.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 4r4 - 2008-01-22 - 03:21:26 - TWikiContributor
Revision 3r3 - 2007-01-16 - 04:11:59 - TWikiContributor
This site is powered by the TWiki collaboration platformCopyright © 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
Syndicate this site RSSATOM