I am trying to write a script to upload multiple images and resize them. For uploading I usually use Colin Verot's upload class (which handles image resizing as well). The problem I have is that I want my end user to be able to select any file in a folder and then have every jpeg in that folder uploaded.
Now, before people say anything, I know that's not exactly a good thing to do and if this was a public site I would agree. This is actually part of a CMS system. the user is a photographer (and a friend) who is resizing his images first (nothing over 500k will be uploaded although he has the option of uploading up to 8 meg per file) and he's not stupid enough to put loads of strain on the server. It's a dedicated server as well and I would really like to make this function available for him as I know it will save him a lot of time.
Now, the problem I have is this:
I have currently got a form that will let him choose an image and will pass the directory on to another page. So now I need to open that directory (stored on his personal machine), choose the files to upload and upload them using the class.
Does anybody have any idea of how I can do this? If not, does anybody know another way of making this work. I am open to all suggestions.
Thank you all for your time and support and I look forward to hearing what everyone has to say