Any good idea to send a file into a rust canister?

I guess this might can be a infra-level function ?

Here`s some solution find yet. If ic-infra team can encapsulate whole instructions will be great~

in openchat codebase:

backend/canisters/storage_bucket/impl/src/updates/upload_chunk.rs line 18 function upload_chunk_impl()

inside this function got a put_chunk() funtion . main data part is a bytes: ByteBuf struct. received from browser

And then call insert_completed_file() and add_blob_if_not_exists() and self.files.insert() !