We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 415d40c commit 013fe6eCopy full SHA for 013fe6e
src/main/java/io/ipfs/api/Multipart.java
@@ -82,7 +82,7 @@ private static String encode(String in) {
82
}
83
84
public void addFilePart(String fieldName, Path parent, NamedStreamable uploadFile) {
85
- Optional<String> fileName = uploadFile.getName().map(n -> encode(parent.resolve(n).toString()));
+ Optional<String> fileName = uploadFile.getName().map(n -> encode(parent.resolve(n).toString().replace('\\','/')));
86
writer.append("--").append(boundary).append(LINE_FEED);
87
if (!fileName.isPresent())
88
writer.append("Content-Disposition: file; name=\"").append(fieldName).append("\";").append(LINE_FEED);
0 commit comments