I am using http request to downlaod a file.
It works, but I don not konw when the file dowload is done.
So how do I change this code so I get a signal that the download is complete.
And then I can go on loading the file.

@onready var req = $HTTPRequest

req.download_file = "download.gltf"
req.request("http://192.168.2.147:11613/TestCube2.gltf")

I am using Godot 4.1 and GDScript

My examples would look the same as those examples.

Are there specific lines that you don't understand?

7 days later

I got this to work, but now I want it to work with VR for my Meta Quest 2,
Anyone that have solved this?

To get help, you may need to ask more specific questions.

I see.
I have made an HTTPRequest and I got response_code = 200 indicating that the downlaod worked.
I called the file download.gltf but I do not know where the file is stored in my Meat Quest 2.
At least I think this is the problem.
So what path should i use to get the downloaded file?

I have tried "res://download.gltf"

  • Toxe replied to this.
    a year later

    Now I need to access files in my meta quest 2 VR glasses. If I add files into my meta quest 2 in the download folder, how do I access them from a Godot app? What should the path bee?

    I'm not familiar with Meta Quest 2. Can the files be accessed from the platform's file system outside of Godot?