hi
I need help with a script that is for allowing mp3 upload to my site. When I was specifying the mimetype i discovered it was dependent on the local machine and on various machines i've tried its been recognised as audio/mp3 audio/mpeg and application/octet-stream...anyway to cut a long story short, i want to limit to only .mp3 extensions by amending the code there.
part of the script checks if there is an actual file being uploaded and i thought its the best part ot start with to amend but i haven't had much luck. any ideas ? thanks.

 */
function security_check(){
	if 

(is_uploaded_file($_FILES[$this->input_field_name][tmp_name])){
$this->file =

$_FILES[$this->input_field_name];
}else{
$this->error_msg = "Uploaded file does not

exist!";
return false;
}

Elaine

    why do you use a clls for this?

    did you check $FILES by doing

    print_r($_FILES);

    did you check $this->input_field_name?

    please use ['tmp_name'] instead of [tmp_name]

      Write a Reply...