multipartはContent-TypeがContent-Type: multipart/form-dataなのでheaderオプションでContent-Typeを上書きしてしまうと意図した動きにならない。
postするファイルのContent-Typeを指定する場合は@fileの後ろにtypeで指定する。
curl -F "file=@file.caf;type=audio/x-caf" ...
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
multipartはContent-TypeがContent-Type: multipart/form-dataなのでheaderオプションでContent-Typeを上書きしてしまうと意図した動きにならない。
postするファイルのContent-Typeを指定する場合は@fileの後ろにtypeで指定する。
curl -F "file=@file.caf;type=audio/x-caf" ...
Register as a new user and use Qiita more conveniently
Go to list of users who liked