Seite 1 von 1

a problem in uploading

Verfasst: Fr 10.Nov, 2006 04:57
von amir abbas
hi :o

i have a problem with this mod
when i want to upload a file to server, this eroor message appear

Code: Alles auswählen

Warning: copy(./http://itmashhad.com/downloads//speech2.jpg): failed to open stream: No such file or directory in /home/mashhad/public_html/dl_mod/includes/dl_upload.php  on line 158
and this is the codes between line 140 to 160 of dl_upload.php file

Code: Alles auswählen

		$remain_traffic = $dl_config['overall_traffic'] - $dl_config['remain_traffic'];
		if($file_size == 0 || ($file_size > $remain_traffic && $dl_config['upload_traffic_count']))
		{
			message_die(GENERAL_MESSAGE, $lang['Dl_no_upload_traffic']);
		}

		$dl_path = $index[$cat_id]['cat_path'];

		$i = 0;
		do
		{
			$j = ($i == 0) ? '' : $i.'_';
			$file_name = $j . $file_name;
			$i++;
		}
		while(@file_exists($dl_config['dl_path'] . $dl_path . $file_name));

		$move_file($file_temp, $dl_config['dl_path'] . $dl_path . $file_name);

		@chmod($dl_config['dl_path'] . $dl_path . $file_name, 0777);
	}
this line is line 158

Code: Alles auswählen

		$move_file($file_temp, $dl_config['dl_path'] . $dl_path . $file_name);
how can i solve the problem
thanks in advance :wink:

Verfasst: Fr 10.Nov, 2006 09:26
von oxpus
You have created a download category and not entered a valid subfolder under downloads/.
Check the settings in the category about this.

Verfasst: Do 16.Nov, 2006 07:30
von amir abbas
you are right :)

thanks a lot :wink: