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

Best way to upload multiple image groups?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2023-03-03 09:56:02
Original
1041 people have browsed it

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>
Copy after login
Related labels:
Statement of this Website
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
Latest Issues
What are JavaScript hook functions?
From 1970-01-01 08:00:00
0
0
0
What is JavaScript garbage collection?
From 1970-01-01 08:00:00
0
0
0
c++ calls javascript
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template