The problem of uploading pictures in elment

< el-form-item label= "upload Picture" >

            <!-- <el-form-item label=""> -->
          
                    <el-upload
                      class="avatar-uploader"
                      :action=""http://tupain/:img_path" "
                      :show-file-list="false"
                      :on-success="handleServiceAvatarScucess"
                      :before-upload="beforeAvatarUpload">
                       <!-- <img v-if="selectTable.image_path" :src=""https://elm.cangdu.org/img/" + selectTable.image_path" class="avatar">
                      <i v-else class="el-icon-plus avatar-uploader-icon"></i> -->
                    </el-upload>
</el-form-item>

The function of

tone

  handleServiceAvatarScucess(res, file) {
     console.log(res);
    
  },
  beforeAvatarUpload(file) {
            const isRightType = (file.type === "image/jpeg") || (file.type === "image/png");
            const isLt2M = file.size / 1024 / 1024 < 2;

            if (!isRightType) {
                this.$message.error(" JPG !");
            }
            if (!isLt2M) {
                this.$message.error(" 2MB!");
            }
            return isRightType && isLt2M;
  },
  
 :         



Nov.20,2021

I would like to ask what data is returned after the API is successfully called. It is suggested that the upload is not successful, is it you who did it yourself, or what happened? I don't quite understand


do you see if your parameters are passed to the backend? please take a screenshot and upload the unsuccessful API request

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a7c6-2c226.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a7c6-2c226.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?