Where is the encoding happening?
On Wednesday, June 13, 2012 10:24:33 PM UTC-4, Charles Tang wrote:
>
> The controller code is simple:
> def index():
> upload_form = SQLFORM(db.encodeupload)
> if upload_form.process().accepted:
> session.flash = 'upload complete!'
> redirect(URL('index'))
> uploadlist = db().select(db.encodeupload.ALL)
> return dict( upload_form = upload_form, uploadlist=uploadlist);
>
> I am trying do some tricks in javascript or jquery to prevent the submit
> in view(index.html) but not work at present.Should I do some configs of
> SQLFORM?Thanks.
> On Wednesday, June 13, 2012 9:32:10 PM UTC+8, Anthony wrote:
>>
>> Can you show the controller code?
>>
>> On Wednesday, June 13, 2012 6:56:12 AM UTC-4, Charles Tang wrote:
>>>
>>> I am using sqlform to upload a video and in the meantime converting the
>>> video to flv .Both the progress of uploading and encoding is displayed by
>>> two progress-bar using this code(
>>> http://www.web2pyslices.com/slice/show/1337/upload-progress-in-web2py).
>>> After the encoding and converting is both complete the user can play the
>>> converted video.
>>>
>>> The problem is the form accepted when the upload is complete but the
>>> encoding is not complete.I tried the event.preventDefault() but the
>>> progress-bar do not display. It seems that the default submit can not be
>>> stopped at the time uploading is completed. How to make the submit after
>>> the converting is done?Thanks!
>>>
>>