Stream file from client to server?


So I have a use case where the client uploads a small TSV file, the file is opened and parsed on the server, and results are written to a new file on the server.

Since the TSV file will be tiny (under 1 MB), I am wondering if it is even necessary to upload the file to the server (writing it to disk) before parsing it. Instead, could the file contents be captured when the user clicks “upload file”? I could then store the file contents in an array, each item representing a line in the file.


I think CollectionFS does this where possible. Look at the documentation here for initiating an upload: