forked from kidgrow-microservices-platform

zhaoxiaohao
2020-09-28 eaba03403dbc541141c62f12e506088b9ba8720e
kidgrow-business/kidgrow-filecenter/kidgrow-filecenter-server/src/main/java/com/kidgrow/filecenter/controller/FileController.java
@@ -90,8 +90,8 @@
    /**
     * byte[]上传
     */
    @PostMapping(value="byteUplaod",produces = {MediaType.APPLICATION_JSON_UTF8_VALUE},consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public FileInfo byteUplaod(@RequestBody String fileName,@RequestBody byte[] bytes){
    @PostMapping(value="byteUplaod")
    public FileInfo byteUplaod(@RequestParam("fileName") String fileName,@RequestBody byte[] bytes){
        if(bytes.length == 0){
            return null;
        }