Overwrite files in User Upload

Phoca Download - download manager
enzo
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 07 Apr 2012, 15:08

Overwrite files in User Upload

Post by enzo »

Joomla: 1.5.26
Phoca Download: 1.3.9

Hi,

Is it possible to let he user overwrite existing files while uploading the files from the frontend?
(User Upload Layout)
Found only a topic for the backend....

regards
enzo


----------------------------------------------------------------


Open up controllers > phocadownloadupload.php and go to line 190. You will see the following code:

/*if (JFile::exists($filepath)) {
if ($format == 'json') {
header('HTTP/1.0 409 Conflict');
jexit('Error. File already exists');
} else {
JError::raiseNotice(100, JText::_('Error. File already exists'));
// REDIRECT
if ($return) {
$mainframe->redirect(base64_decode($return).'&folder='.$folder);
}
return;
}
}
*/
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48595
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Overwrite files in User Upload

Post by Jan »

Hi, this is planned.

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