How to access tmp files of a space?

Greetings,

I have a space running on huggingface, it saves an image but I don’t know how to access the save image like the url of it. I tried: https://huggingface.co/spaces/tommy24/classifier/file=/tmp/{filename}
but it doesn’t work. Please help me out.

Thank you

hi @tommy24 ,

You probably want to access the file param via the subdomain app. Please try

https://tommy24-classifier.hf.space/file=/tmp/{filename}

Facing this error: {“detail”:“File not allowed: /tmp/image.png.”}

Even though the file has been saved, This happens to all the files.

Please help me out.