Post by Goliath » Tue Feb 18, 2014 6:08 pm

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.

New member

Posts

Joined
Mon May 20, 2013 6:19 am

Post by rempong » Wed Feb 19, 2014 8:21 am

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

OPENCART MODULE :
Opencart Compare Link VQMOD, Link your compared product to forum/email

Copy and DIRECTLY Edit Product, the easy way.

Custom Product Sort, Full control to product sorting options

Already Sold Product Module, shows total product sold

Opencart Shortcode (Wordpress Clone)


Active Member

Posts

Joined
Fri Sep 14, 2012 2:38 pm
Location - Indonesia
Who is online

Users browsing this forum: Bing [Bot] and 33 guests