Closed igrep closed 5 years ago
Basically, good. But please consider using mime-types
and http-types
packages.
and http-types packages.
Already used. Where? You mean here?
Okay, I've found statusIsSuccessful
function.
I didn't find it yesterday. Thanks!
6596dd0 should show what I meant.
Thank you! 👍 Can I merge now?
Yes. See above.
:new: Add
uploadFile
function which uploads a file to direct4b.com.To imitate the file upload feature of direct on a web browser, this function does:
create_upload_auth
RPC function to get the URL to upload.runUploadFile
).sendMessage
to notify the files is uploaded.Files
value constructor to typeMessage
, representing a message with uploaded file(s) with its decoder and encoder.upload
subcommand todirect4b
-m
option, like daab's same feature.