filestash icon indicating copy to clipboard operation
filestash copied to clipboard

Failed to upload file

Open CumtGisBoy opened this issue 1 year ago • 0 comments

I use post:/api/files/cat? Path={path}&key={key}&share={shareID} When uploading files,. txt,. zip, and pdf files can be successfully uploaded, but Word and Excel files are damaged

@FeignClient( value = "${chn.fileStash.feignName}", url = "${chn.fileStash.endpoint}", configuration = { FileStashAuthInterceptor.class } ) public interface FileStashClient {

@PostMapping( value = "/files/cat", headers = { "X-Requested-With=XmlHttpRequest", "Content-Type=multipart/form-data" })
Map<String, Object>  uploadFile(@RequestHeader(X_DSID) Long datasourceId, @RequestParam("path") String path,@RequestPart("file") MultipartFile file);

}

CumtGisBoy avatar Jun 06 '23 08:06 CumtGisBoy