HI,
I have not tried file uploading before and can't seem to get it to work the way
I want it to. The end result I want is to select a group of photos and
upload them to "upload.php" where they will be renamed and stored to another directory.
Code:
<!DOCTYPE html>
<!--PHP 5 File Upload
With PHP, it is easy to upload files to the server.
However, with ease comes danger, so always be careful when allowing file uploads!
Configure The "php.ini" File
First, ensure that PHP is configured to allow file uploads.
In your "php.ini" file, search for the file_uploads directive, and set it to On:
file_uploads = On ... This I have done.
Create The HTML Form
Next, create an HTML form that allow users to choose the image file they want to upload:
-->
<html>
<body>
<form action="/home/rick/Desktop/PHP.HTML/upload.php" method="post" enctype="multipart/form-data">
Select image(s) to upload:
<input type="file" name="myFiles[]" multiple="">
<input type="submit">
</form>
</body>
</html>
When I run this "fileUpload.html" script A window opens offering me to open the php script with some application or to save the file. I want my php script to
run.
I apparently don't understand something basic here.
Thanks for any help to fix this,
R