I think this is related to the usage of tmp folders because i can see your files in /tmp created by user www-data but when i'm requested to download the file this is an empty one.
I will investigate later as i do not plan to create the file on the server , i just need a passthrough