Page 1 of 1

Product Downloads PRO: files uploading doesn't working

Posted: Wed Apr 26, 2017 4:46 pm
by Ilya Heifetz
Hi!
I'm using OpenCart 1.5.6.4 and Product Downloads PRO 4.0.5 extension. My Operating System is Windows 7 and local virtual server is OpenServer.
Product Downloads PRO extension settings are default.
Does not work uploading files on Catalog->Downloads->Downloads->Insert (.../admin/index.php?route=catalog/download_ext/insert&token=...)
When I click on the "+ Add files ..." button, I select a file and try to upload it by clicking on "Upload", I get a Forbidden error related to the lack of access to the /system/library/upload.php file:
Image

Image

Image

The extension of the uploading file does not matter.
The ./admin/index.php?route=catalog/download_ext/insert page corresponds to the ./admin/controller/catalog/download_ext.php controller, which displays ./admin/view/template/catalog/download_ext_form.tpl view.
The '/system/library/upload.php' path is passed from the controller to the view via the variable $this-> data ['upload']:
Image

The value of the $upload variable is displayed in a view in a minified js script:
Image

For the first time I see such file calling:
$this->data['upload'] = HTTPS_CATALOG . 'system/library/upload.php?token=' . $this->session->data['token'];
The requested file is not a controller. How can it be called?
Most likely, the problem is not in the upload.php file , but in the system/ or system/library/ folder, to which access is denied.
Let's do a little experiment. Change the name of the file to an arbitrary file (for example, to aaa.php) and try to upload the file again. We again get the error "Forbidden", despite the fact that such a file does not even exist:
Image

Image

How do I fix files uploading?

Re: Product Downloads PRO: files uploading doesn't working

Posted: Thu Apr 27, 2017 2:19 am
by IP_CAM
well, you may better upgrade to the latest Version 5.2, still, if you run into Problems with a legally paid
Extension, the Mod Creator would be the only Person in charge, to support you, no-one else would know,
not using this Mod. ::) And those who do, usually don't come here, to assist in such cases...
Ernie
---
Forum Topic:
viewtopic.php?f=123&t=53705&start=60
---
Product Downloads PRO
https://www.opencart.com/index.php?rout ... on_id=4968