Page 1 of 1

viewing/downloading download file ?

Posted: Tue Feb 18, 2014 6:08 pm
by Goliath
Let's say i've uploaded a lot of downloads to my shop.
Is there a way to view/download the original file from within the admin area ?

I've tried to href to the original filename, as well as to the mask. Both fail, saying the file can't be found.
For example, I'm getting the error message when I right click and choose 'save as' on this link: <a href="http://heregoesmysitename.com/download/ ... .jpg">view original</a>

I'm sure I used the right filenames though.
This must be a security measure, but is there a work around since i make the request from within the admin area ?


Right now the only way to view the original download file is to dowload it with a ftp program, which isn't an option when I want someone else to view the files.

Re: viewing/downloading download file ?

Posted: Wed Feb 19, 2014 8:21 am
by rempong
IF you enabled htaccess, there is line like this :

Code: Select all

RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
So you cant direct access to download folder.
Try imitate what front end opencart code do, for downloading file from that folder.
\catalog\controller\account\download.php