Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Multiple File uploads with php

  • 04-12-2011 03:37PM
    #1
    Closed Accounts Posts: 183 ✭✭


    Hi all,

    I'm designing a php form that requires people to upload several different files to a server.

    All I'm doing at the moment - is asking the user to choose a file with

    <input type = "file" ...

    and then echoing the filenames back out, there is no uploading taking place just yet.

    There are four of these file input boxes. When one is chosen, everything works fine. But if two files are chosen ( in separete input boxes) then I get an error which says that the web page is unavailable or has been interrupted.

    Anyone any ideas? Thanks


Comments

  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    Hi all,

    I'm designing a php form that requires people to upload several different files to a server.

    All I'm doing at the moment - is asking the user to choose a file with

    <input type = "file" ...

    and then echoing the filenames back out, there is no uploading taking place just yet.

    There are four of these file input boxes. When one is chosen, everything works fine. But if two files are chosen ( in separete input boxes) then I get an error which says that the web page is unavailable or has been interrupted.

    Anyone any ideas? Thanks

    Have you different names on the input boxes ?


  • Registered Users, Registered Users 2 Posts: 26,449 ✭✭✭✭Creamy Goodness


    also is all the inputs contained within the fieldset of the form?

    could you post up an example otherwise all anyone can do here is second guess.


  • Registered Users, Registered Users 2 Posts: 912 ✭✭✭chakotha


    Are you using an array variable name? eg. myfiles[]?

    Alternatively there is a jquery plugin that I used myself recently and it's pretty decent.

    http://www.fyneworks.com/jquery/multiple-file-upload/


Advertisement