Hi Group,
On a website that I have to modify (PHP with MySql), users may post products
for sale and upload a
photo or image of the item. Currently they are uploading images in sizes
from 2k to several megs.
I have to change it so that users are only allowed to upload an image of say
max. 24k.
If the image is larger, the system must reject it and display an appropriate
notice.
The following code is currently being used to upload:
<?
if ($image_name != ""){
$image_name = uniqid("seu");
copy("$image","/usr/local/customer/virtualfp/www........com/clnt_images/$ima
ge_name");
}else{ }
?>
Any ideas as to how I can control this process prior to upload?
TIA
Peet
This message (including attachments) may contain information that is
privileged, confidential or protected from disclosure.
If you are not the intended recipient, you are hereby notified that
dissemination, disclosure, copying, distribution or use of
this message or any information contained in it is strictly prohibited. If
you have received this message in error, please
immediately notify the sender by reply e-mail and delete this message from
your computer.
Although we have taken steps to ensure that this e-mail and attachments are
free from any virus, we advise that in keeping
with good computing practice the recipient should ensure they are actually
virus free and no responsibility is accepted by
Nu Breeze Tech for any loss or damage arising in any way.
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.