Home  >  Article  >  Backend Development  >  Best way to upload multiple image groups?

Best way to upload multiple image groups?

WBOY
WBOYOriginal
2016-12-05 13:44:19913browse

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?

Reply content:

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>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn