Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 215 characters in body
Source Link
Kushan
  • 10.7k
  • 4
  • 39
  • 41

Use files[] into <input> name attaribute

 <input type=”file” id=”file” name=”files[]” multiple=”multiple” accept=”image/*” /> 

We also need to give file input type file name with box breaks like files[] and need to add a property named multiple. Here accept is an optional property that used to allow users to upload only image files.

Use files[] into <input> name attaribute

 <input type=”file” id=”file” name=”files[]” multiple=”multiple” accept=”image/*” /> 

Use files[] into <input> name attaribute

 <input type=”file” id=”file” name=”files[]” multiple=”multiple” accept=”image/*” /> 

We also need to give file input type file name with box breaks like files[] and need to add a property named multiple. Here accept is an optional property that used to allow users to upload only image files.

Source Link
Kushan
  • 10.7k
  • 4
  • 39
  • 41

Use files[] into <input> name attaribute

 <input type=”file” id=”file” name=”files[]” multiple=”multiple” accept=”image/*” />