Send download file with custom attributes
I have file on my server that have some custom attributes
ex.
getfattr -d /tmp/wmt4EV1kGclXt4mS4bMWUlKwjiVPlJ21
user.SOME_MY_CUSTOM_ATTRIBUTE="0.0.1"
Then i have RestController that send this file
public fun downloadFile():ResponseEntity{
val file = File(....)
val respHeaders = HttpHeaders()
respHeaders.contentLength = file.length()
respHeaders.setContentDispositionFormData("attachment", file.name)
val isr =...