|
Posted by Tyrone Slothrop on 09/19/05 16:52
On Mon, 19 Sep 2005 07:45:43 GMT, "Shawn Wilson"
<firstinitial_lastname@dvigroup.net> wrote:
>I'll admit that I haven't looked too hard just yet on this one, but wondered
>if the group might have a quick answer.
>
>Is it possible to use PHP to upload multiple files from a client? And what
>I'm thinking is for the client to choose one local folder and for the script
>would upload every file in that folder that matches a file mask (*.jpg
>specifically).
>
>It's for my photo album and at present I FTP the files to an import folder
>and run my scripts from there that resize and insert into my SQL database.
>If I can make it one step though, that would be great.
>
>I've seen many JavaScript or applet ways to do this out there, but as I'm
>not a java programmer I'd like to stay with what I know (or am getting to
>know)... in this case PHP. Unless it's only possible with java, then I
>guess I'll have to learn that.
>
>Thanks in advance!
Short answer: Yes, it is possible.
Longer answer: Review the page in manual.
http://www.php.net/manual/en/features.file-upload.php
Just create as many input fields as you need as specified in the
section "Example 38-3. Uploading array of files".
Navigation:
[Reply to this message]
|