Closed hbrunn closed 1 month ago
Hi @lmignon, some modules you are maintaining are being modified, check this out!
Thank you for the fix @hbrunn Can you I a unittest to check that it works in the initial case and with fs_attachment?
/ocabot rebase
Congratulations, PR rebased to 16.0.
/ocabot merge patch
This PR looks fantastic, let's merge it! Prepared branch 16.0-ocabot-merge-pr-365-by-lmignon-bump-patch, awaiting test results.
Congratulations, your PR was merged at f4a28295f09c4feb56644d613972d2126e990a89. Thanks a lot for contributing to OCA. ❤️
when we craft a link like
/web/content?model=my.model&filename_field=filename&field=binary_field&mimetype=mime.type&filename=myfile.name
the parameters are ignored and the resulting download gets the generic (wrong) name/mimetype from the attachment of the binary field if it is of type
fs
. For filestore attachments, this happens inir.binary#_get_stream_from
, so I think we need to do the same thing for fs attachments. Otherwise, we can't really use this as drop-in replacement for storing binary fields in object storage.