...and use that one instead of confirm_form().
This would be the first step to implementing #3769. It would basically have the same functionality as confirm_form(), with the difference being that this would open a dialog on the same page where a form is being submitted, instead of loading a confirmation page, and then redirecting back to the original form where the user started from.
GitHub Issue #:
3771
Recent comments
This is good enough, but maybe the module maintainer would like to add such a feature.
specific webform permissions
This should be allowed atleast on private files directory. Accepted your answer though.
How to upload js and gz files
This is a security precaution. It's not recommended and it's not documented in the settings.php file, but you can set allow_insecure_uploads to be TRUE if you wish to allow uploading files like...
How to upload js and gz files