Closed jorgheymans closed 2 months ago
That indeed seems to be the case. Probably a regression since the last largish changes I made for better Spring Security support. I only consume the content so didn't notice, good catch!
Fixed now in git, building 2.8.14 soon.
When uploading a file through
UploadFileHandler
, it propagates the generated UUID (ufhid
in the js) as filename instead of the real file name. Given that the javadoc for FileHandler says@param fileName the name of the file in users device
I believe the current behaviour is wrong and we can change it without breaking compat. See below how i fixed it locally, using a more "formal" content disposition parser at the expense of an extra dependency.On my machine the Content disposition header looks like this, so it's clear we have to use the
filename
parameter and not thename
parameter.Content-Disposition attachment;name="87761d51-4200-4c3e-8ce1-fcac9f908586"; filename="Request_9_19042024154545.xlsx"