hello,

i need everybody's opinion about how to best batch upload files to my server.

im currently building a page that allows admins to upload pictures from events that we host.

here is the situation:

  1. the admins would like to be able to upload a batch of files... like... lets say 40 jpegs from an event or whatever.

  2. all the images will be jpg's of roughly the same size and exact same dimensions.

i want to be able to have the admins click on 'upload files' and once the windows box pops up... allows them to highlight multiple files and click on open or save or whatver the button is...and have my script recognize that they want to upload those multiple files. ive noticed that lots of webpages allow you to select one file at a time... which is i guess reasonable for attaching files to emails.... but .. in my situation... the admins would almost always want to upload a batch of 30+ files... selecting the files one by one and clicking go can be really cumbersome...

im obviously a newbie...and file uploading is new to me. also, this batch upload feature they they require really scares me cause i see so many enterprise webpages out there without the feature... so it makes me think that its pretty difficult or cumbersome to code....

i hope you guys can help me out... if not sending me code... i hope you guys can point me the right direction. when i mean the right direction... i mean... i hope you can give me names of functions and or techniques that i can look up in google....and read up on to figure out how to tackle this.

also, once the files are uploaded, i would like the script to create a folder with a folder name specified by the admin, and i want the script to place the images in that folder... i also have not worked with file and folder control with php so i dont know how to create folders and rename files and what not with php... if you guys can suggest the direction i should go on this (as far as the safest and easiest way to do so) ... or give me links.. that would be well appreciated too..

well ok... i guess thats enough asking...
you guys always pull through for me....so thanks in advance... you guys rock.

-ron

    Originally posted by ronjon
    ive noticed that lots of webpages allow you to select one file at a time...... so it makes me think that its pretty difficult or cumbersome to code....

    That's because that's all HTML's <input type="file"> allows. http was never intended as a replacement for ftp, which is what you're really wanting here.

    One idea is to have the admins make a .zip file and upload that; you can then extract the image files from that archive. Another would be to provide ftp access to an upload area (though I'm thinking that might be a bit more fiddly given the other tasks you mention wanting to do).

      as ive mentioned... im pretty much a newbie... so.. bear with me

      i wouldnt mind using ftp at all... that seems pretty simple.. drag and drop... or even using zip files...

      on ftp...
      my guess is... id have to turn on... or run an ftp server? (i dont know the lingo). doesnt an ftp server come with 2000pro?

      is opening an ftp window for the admin to drag and drop to very difficult? can you give me a brief idea of how to do this? and tell me the security concerns and most important considerations for doing so... and settings necessary for an ftp server for this kind of application?

      on zip files...
      do i need a server resident application running or a special unzip application running on the server to unzip the files? is it very difficult to use this approach?

      again... im a newbie... so i prefer the simpler approach...

      if you can send me links or names of the concepts i would need to google up... that would be very much appreciated... thanks a bunch in advance again...

      -mr. kingkongdingdong

        Write a Reply...