Hello,

I am trying to figure out how to transfer files to a server. I got a TCP transfer to work, but sometimes port-forwarding due to ISPs doesn't work and it requires both people to be online at the same time. I tried to use Python and Flask and got a basic log-in to go through, but when you use authentication you get a redirect. Also there is no way to really store the cookie and send to the flask server to keep it logged in. I am trying to allow a user to upload a folder with some json and pngs in it. In theory I would like to have to go to their account or folder. Any help would be appreciated. I am not married to Python or Flask, but anything that has a basic working example would be appreciated.

I have not looked much into godot's offering but there is web socket support.

In order to be secure with a login use a web socket via https. You can then establish a connection, where login credentials are sent first. You can keep the websocket connection open indefinitely and send data as you like.

The back end needs to be setup to handle the web socket connections and process information sent from your app, the first step being authentication. After that you exchange any quantity of information.

The image may need to be encoded, but you may be able to send byte data (it's been a while since i used websocezkts so.. it may need encoding into text)

If you know a little javascript you can probably bread board up the basics in javascript quickly on a local page and with a local server. It would be orders of magnitude faster that the editor.

2 years later