hi,
i dunno why, but i have tested my upload script with IE 6. but the file wasn't uploaded. it works fine with Opera and FF. i use php 5.1.2
here is my upload script
[PHP]
//get the picture file
//validation on type and size
$fileName = '';
if(($_FILES['picture']['type'] == 'image/jpeg' || $_FILES['picture']['type'] == 'image/png')&& $_FILES['picture']['size'] < 3000000)
{
//user picture file name is the same with user key
//get user key
/*** query process ***/
$fileName = 'sameWithUserKe y';
//move the uploaded file
move_uploaded_f ile($_FILES['picture']['tmp_name'], "../images/imgs/".$fileName );
}
[/PHP]
though maybe something wrong with it.
thx
i dunno why, but i have tested my upload script with IE 6. but the file wasn't uploaded. it works fine with Opera and FF. i use php 5.1.2
here is my upload script
[PHP]
//get the picture file
//validation on type and size
$fileName = '';
if(($_FILES['picture']['type'] == 'image/jpeg' || $_FILES['picture']['type'] == 'image/png')&& $_FILES['picture']['size'] < 3000000)
{
//user picture file name is the same with user key
//get user key
/*** query process ***/
$fileName = 'sameWithUserKe y';
//move the uploaded file
move_uploaded_f ile($_FILES['picture']['tmp_name'], "../images/imgs/".$fileName );
}
[/PHP]
though maybe something wrong with it.
thx
Comment