我正在使用milton,我的上传代码如下:
@PutChild
@Transactional
public FileContentItem uploadFile(FolderContentItem parent, String name, byte[] bytes){
String traceId = UuidGenUtil.createUuid();
try {
QUERY_LOGGER.info("[uploadFile][NetdiskController],action=Request, name={}, size={},traceId={}",name,bytes.length,traceId);
在windows下,我可以成功上传文件,但是用Mac Finder,字节长度总是0,错误如下:
The Finder can't complete the operation because some data in "Shot.png" can't be read or written (Error code -36)
有谁知道为什么?谢谢
更新:我在 mac 中尝试 ForkLift webdav 客户端,可以成功上传文件