Page 1 of 1

Remote files in Phocadownload

Posted: 23 Jul 2012, 12:38
by Denitz
It occurs that we can't have links to remote files, because Filename is required, and download helper also checks mime type, which is unpredictable, i.e. for this link:
http://www.planetemu.net/index.php?sect ... &id=324727

Can you update PhocaDownload somehow, so Filename is not required, and download helper doesn't check the MIME if link_external is presented?

This code helps me:

Code: Select all

class PhocaDownloadHelperFront
{	
	function download($fileData, $downloadId, $currentLink) {
.....

			if ($errorAllowed && !$externalLink) {
				$msg = JText::_('COM_PHOCADOWNLOAD_WARNFILETYPE_DOWNLOAD');
				$app->redirect(JRoute::_($currentLink), $msg);
			} else if (!$errorDisallowed && !$externalLink) {
				$msg = JText::_('COM_PHOCADOWNLOAD_WARNFILETYPE_DISALLOWED_DOWNLOAD');
				$app->redirect(JRoute::_($currentLink), $msg);
			} else {

Re: Remote files in Phocadownload

Posted: 23 Jul 2012, 15:25
by Denitz
OK, I see that we can enter link in Filename, but mime type is still checked even if external link is not empty.

Re: Remote files in Phocadownload

Posted: 09 Aug 2012, 08:01
by Jan
Hi, I will take a look at it for the next version.

Jan