We need to extract all functionality connected with multipart/form-data. Steps are the following:
[ ] Implement full-featured file-sending to the server This includes generating unique filename, storing file location, original name, owner and message it attached to in database.
[ ] Implement ability to download sent files. This is required in case we encounter a problem that will require as to change the way files are saved.
[ ] Move all functionality form multipart/form-data into a separate module. Acceptance criteria: multipart formdata should be a black box for module user. They should not be allowed to interact with the buffered reader. They are only allowed to give it a clousure that creates file handle.
[ ] Move this module into a separate crate. It should somehow be self-explanatory, but it's not.
[ ] PUBLISH this crate AT LEAST on github then visit all the forums and threads where peolpe cry there is no multipart/form-data for Tide-rs, and become the messiah
We need to extract all functionality connected with
multipart/form-data
. Steps are the following:multipart/form-data
into a separate module. Acceptance criteria: multipart formdata should be a black box for module user. They should not be allowed to interact with the buffered reader. They are only allowed to give it aclousure
that creates file handle.