Use HTML5 FormData browser API together with FileList API to make
possible AJAX file uploads (see http://tinyurl.com/kmznw2n on FormData
examples). Feature detection is the same as in jQuery Form Plugin (see http://tinyurl.com/n6v5dsx). Browsers without FormData support (most
importantly, IE<10) do not support setting custom AJAX request
headers, so form with File Upload field will lose modality in them
anyway.
Reviewed: https:/ /review. openstack. org/107769 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=b88aaa16d3e 718cfe5f0509c5a 47c51887884f35
Committed: https:/
Submitter: Jenkins
Branch: master
commit b88aaa16d3e718c fe5f0509c5a47c5 1887884f35
Author: Timur Sufiev <email address hidden>
Date: Mon Jul 21 19:13:15 2014 +0400
Allow form to stay modal after uploading file
Use HTML5 FormData browser API together with FileList API to make tinyurl. com/kmznw2n on FormData tinyurl. com/n6v5dsx). Browsers without FormData support (most
possible AJAX file uploads (see http://
examples). Feature detection is the same as in jQuery Form Plugin (see
http://
importantly, IE<10) do not support setting custom AJAX request
headers, so form with File Upload field will lose modality in them
anyway.
Change-Id: Id3b91a49a71c6d e314c6a7cbee535 7fe13679490
Closes-Bug: #1158501