Question:
When using the CkHttpRequest to upload a file with AddFileForUpload, how long must the file remain on disk until it may be deleted?
Answer:
AddFileForUpload adds the filepath of the file to be uploaded to the CkHttpRequest. It does not read the contents of the file at the time of calling AddFileForUpload. When the upload is sent (by calling SynchronousRequest) then the upload files are streamed directly from the filesystem to the HTTP server. This allows for files which may be too large to hold in memory to still be uploaded to an HTTP server without unreasonable memory consumption.