> > Let me put it this way: > Can I determine the hash of an uploaded file during the upload process > (when the form is submitted) and before it is actually stored on the > filesystem? >
I haven't been following this thread, but that sounds doable. When the file is uploaded, request.vars.file.file will hold the file object, and request.vars.file.filename will hold the original filename, so you could do something with those values before calling form.process(). You can also specify an onvalidation function via form.process(..., onvalidation=myvalidation), and I believe the function will be called before the file is stored. Anthony

