Deleting file after sending using SystemFile #4868
-
Hi, can you please help me in solving following situation? I am generation ZIP reporting file in controller action and sending it using Example from documentation: @Get
public SystemFile download() {
File file = ...
return new SystemFile(file).attach("myfile.txt");
} Thank you very much for any help :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@morki There isn't an API to do that today. You could likely return a StreamedFile and pass in a custom inputstream that overrides the close method. You can create an issue to ask for a new feature to support this |
Beta Was this translation helpful? Give feedback.
@morki There isn't an API to do that today. You could likely return a StreamedFile and pass in a custom inputstream that overrides the close method. You can create an issue to ask for a new feature to support this