Hello, I would like to upload a large file to a NextCloud instance using Nim. I have figured out how to authenticate. What I was wondering is how can I upload a large file. Clearly, I can't open the file and read the whole file into memory (it's 10GB). I was wondering if I have to do something like:
create http client
close http client
I am puzzling over the httpclient.request procedure. It seems as if I would be doing lots of separate put requests and not streaming the data. Is it possible to open the file and pass the filehandle to the request and then the request procedure would just read the file in chunks and send it to the server?
Sorry if this is a bit confused. I can upload a small file, but larger files are puzzling me.
Many thanks for your help, adil