Multiple File upload using single servlet request
问题 I want to offer to upload multiple files clicking upload button only once. Can I use multipart to send files? If yes, then how? P.S.: I don't want to use flash or send one file at a time. 回答1: In you HTML, you can do the following : <input accept="image/jpeg,image/gif,image/png" type="file" name="upload[]" multiple/> adding multiple to the end of your input grants you what you want. 回答2: Hope This Helps... //JSP File <html> <head><title>Upload page</title></head></p> <p><body> <form action=