Fix files/blob api endpoint content disposition
What does this MR do?
In the current codebase the Content-Disposition
is set to attachment
, but this has brought some problems to users.
In order to fix this, we're following the same approach we apply with the RawController
, let Workhorse determine the Content-Disposition
. By default, the disposition is set to inline
, and if Workhorse detects that the file content shouldn't be inlined it will change it to attachment
.
What are the relevant issue numbers?
Closes #55882 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Tested in all supported browsers -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process. -
Security reports checked/validated by reviewer
Edited by Francisco Javier López (ex-Gitlab)