i need to upload images with md5/uniqid
name.
PHP:
$filenamekey = md5(uniqid($_FILES["myfile"]["name"], true));
move_uploaded_file($_FILES["myfile"]["tmp_name"],$output_dir.$filenamekey);
This move image into folder with md5 name
but upload files without any image extension/type
. how can I fix this?
Pic?