I see. Do you want the form processing action to simply wait until the file is processed before doing the insert and returning? In that case, you might use this approach: http://web2py.com/books/default/chapter/29/7#SQLFORM-without-database-IO?
def index(): upload_form = SQLFORM(db.encodeupload) if upload_form.validate(): [while loop checking to see if file encoding is complete] db.encodeupload.insert(**form.vars) [rest of code] Anthony On Wednesday, June 13, 2012 11:24:09 PM UTC-4, Charles Tang wrote: > > I did some hacking in the copystream in gluon/main.py and begin encoding > with ffmpeg from the temporary file onece it detect video upload is happen. >