Pass home_url parameter when generating info template.
Force extension to lowercase when finding extension icon.
Check if the upload is cancelled before showing an error.