uploading direct from local hard disc
Posted: Sat Apr 12, 2003 11:03 am
Is there a way to upload a file directly from my hard disc other than using a 'file' field in a form? In other words can I set the path/filename in a script rather than having to run a form and browse for the file?
I need to upload a batch of files ( file1.txt, file2.txt, file3.txt, etc.
...) from a specific directory and it would be handy to use a loop within a
PHP script to set the path of each as a variable (say) and upload it, rather
than browse through the disc for each one and click submit.
I'm sure this must have come up before but I don't know where to look for
the solution!
I need to upload a batch of files ( file1.txt, file2.txt, file3.txt, etc.
...) from a specific directory and it would be handy to use a loop within a
PHP script to set the path of each as a variable (say) and upload it, rather
than browse through the disc for each one and click submit.
I'm sure this must have come up before but I don't know where to look for
the solution!