Remote files in Phocadownload

Phoca Download - download manager
Denitz
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 12 Oct 2011, 14:09

Remote files in Phocadownload

Post 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 {
Denitz
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 12 Oct 2011, 14:09

Re: Remote files in Phocadownload

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48595
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Remote files in Phocadownload

Post by Jan »

Hi, I will take a look at it for the next version.

Jan
If you find Phoca extensions useful, please support the project
Post Reply