There’s no easy way to figure out the extension programmatically other than to go digging through the headers and to parse them. Make sure your environment has the proper api permissions and that you're using a valid file id generated by your assistant. Currently, accessing files directly from the data files location with a fully qualified public url is not straightforward, as it is more of a secure sandbox
NYC with @heloisehut 🌆
The suggested approach is to download the file programmatically and then upload it to a public storage solution.
How to convert or access this sandbox:/mnt/data/ style url from make.com
If you are trying to download the file from chatgpt and you end up receiving the error message failed to get upload status for /mnt/data then in this tutorial i will guide you on how to. Chatgpt creates files with the help of python scripts, though They have /mnt/data/ in internal links These files can be downloaded without any problems
You can code a tool that can do this too, but by default an llm can't just create and store files