cli
cli copied to clipboard
Fix tests with Go1.17
Part.FileName now applies filepath.Base to the return value [1]. For compatibility with older versions, this now explicitly applies Base when fetching FileName always.
Note that CI is on 1.15 which is no longer supported; I can update that to supported versions if needed.
[1] https://go.dev/doc/go1.17#mime/multipart