Hello all,

  I've just tried the recipe from the book p197 : "Storing the
original filename", and I've stumbled upon the following strange
behavior :

The following piece of code doesn't work (never get inside the IF)

    if request.vars.file:
        print "In the IF"
        form.vars.file_filename = request.vars.file.filename

whereas the following worked ok !
    if 'file' in request.vars:
        print "In the IF"
        form.vars.file_filename = request.vars.file.filename

 I really do not understand what is the problem...
 Any idea on how to investigate ?

-Mathieu


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to