September 22nd, 2000, 06:49 PM
How do I like allow people to upload something.
Or get the location of the file to upload. Example, I got a form with textbox and a button browse. Upon clicking browse, I will be able to access the client's hdd, the client selects a clip and when done, I can upload it when he click Done.
I would like to know
1)How do am I able to access the client's HDD
2)After getting the path name, how do I upload the file?
[This message has been edited by Chong_Sun (edited September 22, 2000).]
September 24th, 2000, 02:49 AM
You cannot access the users hard drive. What you can do, if you want them to upload files, is to have something like this in your HTML document:
<form action="path_to_upload_script.cgi" method="post" enctype="multipart/form-data">
<input type="file" name="upload">
This will make a form control which will enable users to select a file on their machine and upload it to your server.
September 24th, 2000, 03:13 PM
Thanks dwarf. So this method allows me a select a file on the HDD.
After selecting the path to the file on the HDD, how do I upload that file?
Using `mv $path_of_file_on_HDD $desired_directory`?
September 24th, 2000, 10:09 PM
No, I'm afraid it's quite a bit more than that.
September 25th, 2000, 01:23 AM
September 25th, 2000, 08:28 AM
With all due respect freebsd, this is a discussion forum, so any question on topic is a valid one.
In addition, this forum gets 0-5 new subjects a day, so I dont think that it is over burdened.