mirror of
https://github.com/larksuite/cli.git
synced 2026-07-07 00:55:53 +08:00
BuildFormdata read local files into a bytes.Reader before handing them to the SDK, so the SDK's part-filename detection (which only reads *os.File) fell back to "unknown-file" for every local --file upload. Use AddFileWithName with the file's basename instead.