[STUD-256] Seems like on chrome when cancel is hit in the file chooser, the 'change... - #129
Conversation
…nged' event is fired and startUpload() was being called. We need to check to see if the upload file is blank and - if so - just return immediately out of the function
|
Re: testing. Per Jay's comment today that the interns are building out test harnessing around asset uploads, I'll see if I can build on that when it's done. Although the File Upload file picker is not a DOM element (it's a browser modal), so I'm not sure if it can simulate mouse clicking in those tests. |
There was a problem hiding this comment.
You're better off using the actual files API: do something like $('.file-input').get(0).files and introspect what you get. It's a much nicer API than what you've hacked together here. :)
There was a problem hiding this comment.
|
@singingwolfboy updated API |
There was a problem hiding this comment.
Sorry to be pedantic, but files should be a local variable, not a global variable; which means it needs to be prefixed with var.
|
I thought I put in a comment, but now I don't see it... Do we know WHY this behavior is happening on Chrome? I like your changes, but I wonder if our selector that is binding the event is incorrect. |
|
@cahrens: it's happening because the @chrisndodge Looks good to me! |
|
👍 But please do follow up on the test. |
[STUD-256] Seems like on chrome when cancel is hit in the file chooser, the 'change...
bugfix: lcp score can apparently be 0/0
* Update views.py * Adding import statements * Update test_views.py * updating test cases * Update test_views.py * Update views.py * removing white spaces
fix bug for cms honor url
…re/fix-matplotlib-numpy push matplotlib to post requirements
chore: remove mysql57
Co-authored-by: AliSalman <alisalman@192.168.10.8>
fix: added Redirection logic for enterprise users with the correct workflows
...d' event is fired and startUpload() was being called. We need to check to see if the upload file is blank and - if so - just return immediately out of the function