Skip to content

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

@jiangpengjie

Description

@jiangpengjie

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions