Forums / Templates, Stylesheets, Page Layout / After file upload, want to make filename a clickable link to preview uploaded content

After file upload, want to make filename a clickable link to preview uploaded content

Locked

Started by paulriedel on 11 Aug 2007, 6:25 PM · Views: 1,838

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
11 Aug 2007, 6:25 PM
#1
paulriedel avatar

paulriedel

New Zenner

Join Date:
Aug 2007
Posts:
37
Plugin Contributions:
0

After file upload, want to make filename a clickable link to preview uploaded content

Hi!

After the user uploaded a file and adds this to his/her shopping cart, the attribute, the original filename and the filename of the file on the server is shown to the user underneath the product.
Where is this defined so I can edit what's shown to the user?
I want to make this clickable so the user can see the file he/she uploaded afterwards.

Thank you very much!

  • Paul
3 Feb 2010, 2:17 PM
#2
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

Re: After file upload, want to make filename a clickable link to preview uploaded content

An old thread I know, but seems still open....

I too would like to know what is the best way to do this... I have hacked the orders.php file to add a download link but its not the best way because people can just go to the uploads folder via a URL and try to guess file names which is not hard as its numberical, (12.pdf), and its bad for privacy.

So would anyone know the best way to add a download link to the uploaded file, without compromising privacy by visitors being able to guess uploads URLs?

Using FTP is not a suitable method because many customers do not know FTP or want to use it. It adds the risk of a customer deleteing all the uploads too.

Thanks a lot