> This page is for SDK, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 0.8.2

**`(fix):`** 文件上传端点不再因为存在对 mime 类型变量的引用而编译失败。

```java
// 编译失败的代码
String fileMimeType = Files.probeContentType(file.toPath());
MediaType fileMediaType = fileMimeType != null ? MediaType.parse(mimeType) : null; // mimeType 未定义
// 现在可以编译的代码
MediaType fileMediaType = fileMimeType != null ? MediaType.parse(fileMimeType) : null;
```