Better support for attachment icons via AJAX upload