Avatar of pingeyeg

asked on 

Inserting a pdf file name into the db and the file itself into the server

What does this error message mean?

Warning: copy(../../pdf/Beachwalk Binder.pdf) [function.copy]: failed to open stream: No such file or directory in /mnt/target02/345604/355151/www.domain.com/web/content/admin/add-pdf.php on line 37

$target_path = '../../pdf/';
	$target_path = $target_path . basename( $_FILES['strPDF']['name']); 
	copy($_FILES['strPDF']['tmp_name'], $target_path);
	if($target_path == "../../pdf/") { 
		$action = "";
	} else {
		$action = basename($target_path);

Open in new window


Avatar of undefined
Last Comment

8/22/2022 - Mon