Slash into input text and class.upload.php doesn't work

See all posts See thread Reply

Re: Slash into input text and class.upload.php doesn't work new!
by colin, 10 years ago
Can you copy here the log produced by the class?

And what does it do if you set file_safe_name to false?Reply
Re: Slash into input text and class.upload.php doesn't work new!
by Ogum, 10 years ago
hi
thanks for your reply. I found where is the issue.

$image1 = md5(rand() * time()) . ".$db_name";
$image1 contains something like "03110e1afaf5c168e83a0cf18eed368earticle6/10_-10/10-_20/10"
$fileName = pathinfo($image1, PATHINFO_FILENAME );
pathinfo cuts everything but the file name, in this case $filename == "10" Later i concatenate the ending ".jpg"
Reply