You are implementing a feature where users can upload multiple documents at once. What changes would you make in the HTML form to handle multiple file inputs?
- Use the multiple attribute
- Create multiple file input fields
- Use JavaScript to clone the input field
- Use AJAX for file uploads
To allow users to upload multiple documents at once, you should use the multiple attribute on a single file input field. This enables users to select multiple files in a single input.
Loading...
Related Quiz
- What is the difference between session_unregister() and session_unset()?
- The is_float() function in PHP checks if a variable is an integer.
- Which of the following are true about the $_REQUEST superglobal in PHP?
- The properties and methods of a class are accessed outside the class using the ________ operator.
- The main purpose of a destructor in a PHP class is to perform cleanup tasks before the object is destroyed.