Wojciech Kocjan <[EMAIL PROTECTED]> writes:

> Probably a better thing :> Also, method of getting the data should
> be set by the script. Ie

> set fh [upload get -name $name -method channel]
> or
> set data [upload get -name $name -method result] (after all, I'll get it
> in the result, not set a variable ;-)
 
> Also, here's what imho could prove useful - at least for me.  upload
> save -name $name -file [file join $files $id.jpg]

The problematic thing is that some decisions need to be made before
the script is executed.  This stuff happens when the request comes
in...

So, the callback has to be set up beforehand.  It would be possible to
pass it the name of a Tcl proc.

So...

upload get XYZ 
               -method channel        # returns channel
                       save (name)    # returns name?
                       var (varname)  # returns ?
        
with the third one reporting an error if this hasn't been enabled, or
the first two if it has.

upload info XYZ

                -exists
                -size
                -type
                -filename

upload names

gets all the upload names.

-- 
David N. Welton
Free Software: http://people.debian.org/~davidw/
   Apache Tcl: http://tcl.apache.org/
     Personal: http://www.efn.org/~davidw/
         Work: http://www.innominate.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to