forked from kidgrow-microservices-platform

zhaoxiaohao
2020-09-25 0ec0632831a86fc46703de76e2ce5ea83fd1aafe
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;
        }