Home > Article > Backend Development > Best way to upload multiple image groups?
1 The first method is to use ajax to upload and return the file path, and then save it uniformly. This will generate a lot of input
2 The second method is to use ajax to upload pictures and insert them directly into the database. This method must have an ID
Are there any other methods?
1 The first method is to use ajax to upload and return the file path, and then save it uniformly. This will generate a lot of input
2 The second method is to use ajax to upload pictures and insert them directly into the database. This method must have an ID
Are there any other methods?
I have used Baidu’s batch upload and the effect is pretty good.
http://www.jq22.com/jquery-in...
Reference
<code><form action="" enctype="multipart/form-data" method="post" name="addForm"> <input multiple id="fileImage" type="file" name="img[]"/> </form></code>