Post by Ilya Heifetz » Wed Apr 26, 2017 4:46 pm

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?

Newbie

Posts

Joined
Wed Apr 26, 2017 2:32 pm

Post by IP_CAM » Thu Apr 27, 2017 2:19 am

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

I'm no longer active at the Forum, to reach me, contact: jti@jacob.ch
My free Opencart LIGHT Code is available on demand, and can be
seen in Action here: http://www.opencart.li/dark/ - http://www.opencart.li/bright/
900+ FREE OC Extension-Repositories - from OC v.1.5.x up, on the
world's largest OC-related Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 5 guests