This does prevent the submit but the index.html view which display the
uploading and encoding progress is not active anymore since index.html
contains ajax query to a controller reporting the uploading progress.
On Thursday, June 14, 2012 12:11:11 PM UTC+8, Anthony wrote:
>
> 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.
>>
>