Thanks again for your replies/help.
Ok, that .php displays the "too large "message. Thank you again.
I have a related question. I'll ask it here, but if I should start a new posting, just let me know.
Once the Form submits, the same page is displayed that basically says "Upload Here",
while the script is checking if the file size, which, a user might not be sure what to do seeing the "Upload Here' again, and then after seconds go by, the error shows 'file too large" error text, above "Upload Here".
How can a user not see the "Upload Here' page again while the script checks the file size (and format) for errors?
The Form has this in it:
<form action="..//uploadM.php" method="post" enctype="multipart/form-data"> ETC...
And the beginning of uploadM.php looks like this:
<?php
$target_dir = "uploadM/";
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
$uploadOk = 1;
$imageFileType = pathinfo($target_file,PATHINFO_EXTENSION);
// Check if file already exists
if (file_exists($target_file)) {
echo "Sorry, file already exists.";
$uploadOk = 0;
}
ETC...
does the 'target_file' needs to be modified, or something else?
I look forward to your insight/guidance.