GitLab API doesn't provide any direct way of linking issues with uploads. One approach is to append attachment URLs in issue descriptions.