[Autodeploy] Revert "Merge branch '50070-legacy-attachments' into 'master'"
This reverts https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24679, which doesn't handle invalid data properly. See https://gitlab.com/gitlab-org/gitlab-ce/issues/62982 and https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29389 for details.
Edited by Stan Hu