fix uploading files on Chrome v21 on Windows
fix uploading files on Chrome v21 on Windows

For some reason, uploadify on Chrome Windows as of version 21 appears to be
calling the uploadify error callback when the upload request actually
succeeded. This might be a bug in uploadify, but the upgrade to a more recent
uploadify is still a work in progress.

This intercepts the success in the failure callback and kicks off what would
normally happen on success.

fixes #9766

test plan:
 * Install Windows and Chrome v21
 * Enable S3
 * Upload a file in the Files section using "Add File" link
 * The upload should succeed

Change-Id: If254182dfc35c8a67deff8be5e7ebeff1c18ada3
Reviewed-on: https://gerrit.instructure.com/12744
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
Reviewed-by: Jon Jensen <44f878afe53efc66b76772bd845eb65944ed8232@instructure.com>

snehakachroo1/LSI_replica,landonwilkins/canvas-lms,Rvor/canvas-lms,venturehive/canvas-lms,icelab/canvas,landonwilkins/canvas-lms,Jyaasa/canvas-lms,Jyaasa/canvas-lms,arrivu/hiring-site,gbleydon/canvas-lms,leftplusrightllc/canvas-lms,wye0220/shindig-canvas,Jyaasa/canvas-lms,matematikk-mooc/canvas-lms,djbender/canvas-lms,landonwilkins/canvas-lms,grahamb/canvas-lms,sfu/canvas-lms,SwinburneOnline/canvas-lms,sdeleon28/canvas-lms,kyroskoh/canvas-lms,skmezanul/canvas-lms,antoniuslin/canvas-lms,Unow/ins,arrivu/qibla-ecampus,shidao-fm/canvas-lms,Rvor/canvas-lms,whalejasmine/canvas-lms,whalejasmine/canvas-lms,roxolan/canvas-lms,skmezanul/canvas-lms,usmschuck/canvas,ShreniiNepal/shrenii_lmp,matematikk-mooc/canvas-lms,va7map/canvas-lms,usmschuck/canvas,sli7246/canvas_branch,icelab/canvas,antoniuslin/canvas-lms,antoniuslin/canvas-lms,venturehive/canvas-lms,tgroshon/canvas-lms,dgynn/canvas-lms,juoni/canvas-lms,Unow/canvas-lms,ShreniiNepal/shrenii_lmp,tgroshon/canvas-lms,loganrun/pincan,sdeleon28/canvas-lms,djbender/canvas-lms,usmschuck/canvas,juoni/canvas-lms,skmezanul/canvas-lms,arrivu/qibla-ecampus,fronteerio/canvas-lms,nditech/red-innovadores-lms,va7map/canvas-lms,arrivu/jigsaw-lms,ShreniiNepal/shrenii_lmp,loganrun/pincan,roxolan/canvas-lms,grahamb/canvas-lms,sfu/canvas-lms,matematikk-mooc/canvas-lms,greyhwndz/canvas-lms,skmezanul/canvas-lms,juoni/canvas-lms,HotChalk/canvas-lms,wrdsb/canvas-lms,wrdsb/canvas-lms,arrivu/jigsaw-lms,eCNAP/CANVAS,utkarshx/canvas-lms,tgroshon/canvas-lms,efrj/canvas-lms,efrj/canvas-lms,arrivu/hoodemo,matematikk-mooc/canvas-lms,parbros/red-innovadores-lms,dgynn/canvas-lms,sfu/canvas-lms,samuels410/greatlakes-lms,HotChalk/canvas-lms,jay3126/canvas-lms,wye0220/shindig-canvas,ShreniiNepal/shrenii_lmp,redconfetti/canvas-lms,utkarshx/canvas-lms,sfu/canvas-lms,arrivu/jigsaw-lms,eCNAP/CANVAS,Rvor/canvas-lms,sli7246/canvas_branch,merichar/canvas-lms,rup/Tarrax,fronteerio/canvas-lms,SwinburneOnline/canvas-lms,efrj/canvas-lms,greyhwndz/canvas-lms,leftplusrightllc/canvas-lms,SwinburneOnline/canvas-lms,dgynn/canvas-lms,sfu/canvas-lms,whalejasmine/canvas-lms,dgynn/canvas-lms,arrivu/hoodemo,grahamb/canvas-lms,Unow/canvas-lms,instructure/canvas-lms,landonwilkins/canvas-lms,narigone/canvas,djbender/canvas-lms,ankithbti/canvas_lms,nditech/red-innovadores-lms,instructure/canvas-lms,arrivu/qibla-ecampus,utkarshx/canvas-lms,HotChalk/canvas-lms,efrj/canvas-lms,arrivu/hiring-site,instructure/canvas-lms,juoni/canvas-lms,arrivu/arrivu-lms,Unow/ins,Unow/canvas-lms,narigone/canvas,samuels410/greatlakes-lms,redconfetti/canvas-lms,leftplusrightllc/canvas-lms,parbros/red-innovadores-lms,wrdsb/canvas-lms,ankithbti/canvas_lms,fronteerio/canvas-lms,kyroskoh/canvas-lms,grahamb/canvas-lms,icelab/canvas,grahamb/canvas-lms,rup/Tarrax,arrivu/hiring-site,shidao-fm/canvas-lms,sdeleon28/canvas-lms,sdeleon28/canvas-lms,merichar/canvas-lms,fronteerio/canvas-lms,jay3126/canvas-lms,utkarshx/canvas-lms,snehakachroo1/LSI_replica,sfu/canvas-lms,instructure/canvas-lms,shidao-fm/canvas-lms,Unow/ins,redconfetti/canvas-lms,narigone/canvas,arrivu/arrivu-lms,wimemx/Canvas,snehakachroo1/LSI_replica,eCNAP/CANVAS,Jyaasa/canvas-lms,nditech/red-innovadores-lms,ankithbti/canvas_lms,HotChalk/canvas-lms,rup/Tarrax,kyroskoh/canvas-lms,greyhwndz/canvas-lms,instructure/canvas-lms,usmschuck/canvas,SwinburneOnline/canvas-lms,instructure/canvas-lms,kyroskoh/canvas-lms,AndranikMarkosyan/lms,sli7246/canvas_branch,arrivu/hoodemo,sfu/canvas-lms,jay3126/canvas-lms,merichar/canvas-lms,wrdsb/canvas-lms,antoniuslin/canvas-lms,wimemx/Canvas,venturehive/canvas-lms,AndranikMarkosyan/lms,arrivu/arrivu-lms,whalejasmine/canvas-lms,instructure/canvas-lms,loganrun/pincan,wye0220/shindig-canvas,samuels410/greatlakes-lms,greyhwndz/canvas-lms,venturehive/canvas-lms,roxolan/canvas-lms,eCNAP/CANVAS,parbros/red-innovadores-lms,roxolan/canvas-lms,nditech/red-innovadores-lms,AndranikMarkosyan/lms,leftplusrightllc/canvas-lms,samuels410/greatlakes-lms,shidao-fm/canvas-lms,va7map/canvas-lms,va7map/canvas-lms,AndranikMarkosyan/lms,djbender/canvas-lms,gbleydon/canvas-lms,redconfetti/canvas-lms,gbleydon/canvas-lms,narigone/canvas,tgroshon/canvas-lms,Rvor/canvas-lms,wimemx/Canvas,snehakachroo1/LSI_replica,jay3126/canvas-lms