Jfinal uploads files

the front-end page uses vue+element-ui, and the back-end uses jfinal

added enctype= "multipart/form-data" method= "post"

to the from form

backend uses UploadFile file=getFile (); get
I don"t know what"s wrong, and always report
Posted content type isn"t multipart/form-data error

.

it is useless to change the request header, and in the project, other methods are also used to upload files.
but there is no error, so there is no
solution here.
Thank you all for your bosses


form becomes el-form , remove enctype= "multipart/form-data" method= "post"

submitUpload(){
    this.$refs.upload.submit()
}
Menu