PHP Classes
elePHPant
Icontem

Upload multiple images path: I need to upload multiple images from one file tag in HTML

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  All requests RSS feed  >  Upload multiple images path  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Upload multiple images path

Edit

Picture of Hardy man by Hardy man - 3 months ago (2015-11-16)

I need to upload multiple images from one file tag in HTML

This request is clear and relevant.
This request is not clear or is not relevant.

+3

I can't move multiple images in the given folder and not been able to store their path as well, only one at a time.

  • 3 Clarification requests
  • 3. Picture of Ettore Moretti by Ettore Moretti - 2 months ago (2015-12-14) Reply

    In HTML5 you can use the "multiple" attribute in the tag input type = "file".

    HTML Example:

    <form action = "upload.php" method = "post" enctype = "multipart / form-data"> <input type = "file" name = "files []" multiple /> <input type = "submit" value = "Upload" /> </ form>

    In upload.php you can recover data files with the global variable $_FILES.

    Being a HTML5 features, you will need to deal with the compatibility of different browsers:

    Chrome 6.0 or higher Explorer 10.0 or higher Firefox 3.6 or higher Safari 5.0 or higher Opera 5.0 or higher

    • 1. Picture of Dave Smith by Dave Smith - 2 months ago (2015-11-16) Reply

      As far as I am aware, the input file tag only accepts one file. It would be possible to use javascript to add a new input file tag whenever one was completed. I would check out the jsClasses site and see if they have anything over there that will work.

      • 2. Picture of Dave Smith by Dave Smith - 2 months ago (2015-11-16) Reply

        As far as I am aware, the input file tag only accepts one file. It would be possible to use javascript to add a new input file tag whenever one was completed. I would check out the jsClasses site and see if they have anything over there that will work.

        Ask clarification

        1 Recommendation

        Short Code CRUD: Perform CRUD operations on MySQL table records

        This recommendation solves the problem.
        This recommendation does not solve the problem.

        +4

        Picture of Bharat Parmar by Bharat Parmar package author package author Reputation 170 - 2 months ago (2015-12-12) Comment

        Hello You can use this class where you will find UploadFile() method which allow you to upload multiple files with single input file element.

        To allow multiple file in input, you will have to add "multiple" attributes in the element.

        • 1 Comment
        • 1. Picture of Dave Smith by Dave Smith - 2 months ago (2015-12-13) Reply

          Will require a HTML 5 compliant browser. I never knew they added multiple file support in the HTML 5 specs, you learn something new every day.


        Recommend package
        : 
        :