Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法上传文件 #56

Open
Faultiness opened this issue Feb 1, 2022 · 1 comment
Open

无法上传文件 #56

Faultiness opened this issue Feb 1, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Faultiness
Copy link

版本: v0.4.21
环境: Ubuntu 18.04 LTS

使用命令./cowtransfer-uploader --verbose text.txt上传文件报错,日志如下:

2022/02/01 23:59:53 config = &{token: parallel:3 interval:15 prefix:. debugMode:true singleMode:false version:false keepMode:false authCode: blockSize:1200000 hashCheck:false passCode: silentMode:false validDays:1}
2022/02/01 23:59:53 files = [text.txt]
2022/02/01 23:59:53 retrying: 0
2022/02/01 23:59:53 postBody: map[totalSize:9 validDays:1]
2022/02/01 23:59:53 endpoint: https://cowtransfer.com/api/transfer/preparesend
2022/02/01 23:59:53 map[Authorization:[] Content-Type:[multipart/form-data;boundary=1e3555ae2be6aecaa5f6cdec6c87c585c966962a2721a73496e6303dc538] Cookie:[] Referer:[https://cowtransfer.com/]]
2022/02/01 23:59:54 returns: {"timestamp":1643731194507,"status":415,"error":"Unsupported Media Type","exception":"org.springframework.web.HttpMediaTypeNotSupportedException","message":"Content type 'multipart/form-data;boundary=1e3555ae2be6aecaa5f6cdec6c87c585c966962a2721a73496e6303dc538;charset=UTF-8' not supported","path":"/transfer/preparesend"}
getSendConfig returns error: json: cannot unmarshal string into Go struct field prepareSendResp.error of type bool, onfile: text.txt
@Mikubill Mikubill added the bug Something isn't working label Feb 1, 2022
@joeychsu
Copy link

joeychsu commented Feb 7, 2022

I have the same issue.
Did anyone can help?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants