Преглед на файлове

download url return content-type incompatible with flash

JChanim преди 13 години
родител
ревизия
73877072bf
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      main/document/remote.php

+ 2 - 1
main/document/remote.php

@@ -94,7 +94,8 @@ if ($action == "list")
 	// adding download link to files
 	foreach($files as $k=>$f) 
 		if ($f['filetype'] == 'file')
-			$files[$k]['download'] = api_get_path(WEB_CODE_PATH)."/document/document.php?cidReq=$cidReq&action=download&id=".urlencode($f['path']);
+//			$files[$k]['download'] = api_get_path(WEB_CODE_PATH)."/document/document.php?cidReq=$cidReq&action=download&id=".urlencode($f['path']);
+			$files[$k]['download'] = api_get_path(WEB_COURSE_PATH).$cidReq."/document".$f['path'];
 	print json_encode($files);
 	exit;
 }