Fix uploads accelerated by Workhorse not working with paths
Filenames with slashes were allowed before we added Workhorse acceleration in the uploads API via https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57250. However, users have scripted their uploads to use paths, and Workhorse now rejects files outright with slashes. To accommodate this, we now extract the base of the filename so that file uploads with paths can still work. We introduce the feature flag `workhorse_extract_filename_base` to roll this change out. Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/326350
Showing
Please register or sign in to comment