Jfinal file upload

front-end style, code

front end function

 

 

Check the type and size of the file to be uploaded at the front end, and then use the initUploadForm(); method to upload in the background

html Notes

form表单要加<form id="myform" name="myform"  method="post" enctype="multipart/form-data">

Background controller, and record upload information in the database, preview and download later

 

Overall desired function

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324695811&siteId=291194637