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

上传中文名文件会报错 #263

Open
jiangpengjie opened this issue Sep 6, 2022 · 1 comment
Open

上传中文名文件会报错 #263

jiangpengjie opened this issue Sep 6, 2022 · 1 comment

Comments

@jiangpengjie
Copy link

Runnable uploadRunnable = new FormUploader2(this.upLoaderClient, file, localParams, operator, password, uiCompleteListener, uiProgressListener);
this.executor.execute(uploadRunnable);

java.lang.IllegalArgumentException: Unexpected char 0x4e2d at 34 in Content-Disposition value: form-data; name="file"; filename="中文.MOV"
at okhttp3.Headers.checkValue(Headers.java:272)
at okhttp3.Headers.of(Headers.java:224)
at okhttp3.MultipartBody$Part.createFormData(MultipartBody.java:259)
at okhttp3.MultipartBody$Builder.addFormDataPart(MultipartBody.java:324)
at com.upyun.library.common.UploadClient.fromUpLoad2(UploadClient.java:36)
at com.upyun.library.common.FormUploader2.run(FormUploader2.java:125)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)

@dogeow
Copy link

dogeow commented Dec 16, 2022

🐔了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants