[07:33:35] hi zhuyifei [07:33:43] hi [07:33:56] https://github.com/toollabs/video2commons/blob/master/video2commons/backend/upload/__init__.py#L72 [07:34:13] yeah? [07:34:36] here you are using statuscallback, errorcallback for writing status, error message etc. [07:34:45] it's bad [07:34:48] ik [07:35:19] what are these two: statuscallback, errorcallback? [07:35:34] functions as parameters [07:35:46] ok [07:35:56] I'm planning on a rewrite without these [07:36:40] so let's say there's a very large file which user wants to upload. [07:38:09] and the control is here [07:38:11] https://github.com/toollabs/video2commons/blob/master/video2commons/backend/upload/__init__.py#L65 [07:38:31] ? [07:38:49] files larger than 4 GiB cannot be uploaded no matter what [07:38:58] so will this line write to uwsgi.log? [07:39:21] no, v2c works quite differently [07:39:29] it has celery workers [07:40:09] ok [07:40:45] so all the actual processing is outside of flask's handling [07:41:20] so my question is how will a user get the error message on his screen about the failure to upload his file? [07:42:43] you need to find a way to display the error to the user [07:43:25] ok could you show me the relevant code in v2c? [07:43:46] v2c works by celery throwing an error and storing the error to redis then flask will know the error from the redis and respond it so [07:43:49] k [07:44:57] https://github.com/toollabs/video2commons/blob/master/video2commons/frontend/api.py#L194 [07:45:45] ok [14:07:28] hi zhuyifei are you there? [14:07:44] https://github.com/infobliss/sibutest/blob/master/templates/glam_form.html#L126 [14:08:29] Here I am setting the required Attribute for the tag. [14:09:16] * zhuyifei1999_ looks [14:09:19] so that if the UUID field is empty an error message is displayed and the action on submit doesn't take place. [14:09:53] please don't use inline js like 'onBlur' and 'onFocus' [14:10:23] there's a parameter to do placeholders [14:10:34] yeah there's. [14:11:50] but the required Attribute doesn't seem to work. [14:12:31] then do another sanity check in python [14:13:12] Do I have to use WTForms? [14:13:17] there are always a ton of browser differences and supported/not supported madness [14:13:22] up to you [14:13:35] ok [14:13:42] wtfforms might make coding easier, I haven't tried it [14:14:20] alright. [17:33:02] infobliss: /me starts to read more of your code :)