I have worked on uploads through kemal and thanks for this community I had a lot of progress. So thank you very much for all the support.
My new question is: How can I cleanup a broken temporary file?
Example: I am upload a large file using curl in a endpoint made with kemal. I am saving the temporary file to rename it later.
If I press control+c in the middle of the upload it keeps on the public folder a piece of the file.
I cannot simply delete everything in the public folder because there are other uploads running in parallel.
At the same time, after the download is broken, you lost every data on the env.params.files, so I cannot find the temporary name.
Also I cannot get the temporary name until everything is fully uploaded to env.params.files.