Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

236
Vistas
How to be able to upload files to my Godot HTML build?

I want to be able to upload a text file to Godot. Maybe by dragging and dropping, or maybe using the file explorer. I tried doing this using the JavaScript class in GDScript by doing:

var file_handle = JavaScript.eval("window.showOpenFilePicker();")

This opens the windows file explorer on the top right of my browser. But it prints Null on the chrome console when i do:

print(file_handle)

I'm assuming GDScript doesn't wait until the JavaScript code is finished, it just calls the code and goes to the next line. In other words: GDScript assigns Null to file_handle because the user didn't upload something yet.

So how could i upload a text file to Godot in a HTML build? I hope someone can help.

Regards

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda