Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cardsup

Pages: [1]
1
My gallery is set up in a way that only members can download zipped files of the images. However, if a non-user guesses the location of the download folder and the file structure, he/she can download the files...I feel that this folder should be protected.

I used the .htaccess method. I added the .htaccess file to the download folder. The problem is that when I am logged in as an user and I download the zipped file, it appears to be corrupted. When I remove the .htaccess file, everything seems to be working normally and the zipped file is fine.

I guess one way to fix that is move the download location outside of web-root.  I have two questions:

1. Is it possible to modify the script so I do not have to add the exact path to the zipped files manually in the admin panel? I have over 2000 downloadable images.
2. How can I change Download URL to Download path?

2
Hi Chris,

I am using your hack for the download function and it works great! Thank you!

I have a question -- I need my users to download zipped .esp files instead of the jpg files in the gallery. Since 4images does not support .esp files (as far as I know) I have the files prezipped. However, when I put those files in the 'download' folder, the script can not find them and instead the user downloads the jpg file.

Is there a way I can fix that so the user can download the zipped esp file?

Pages: [1]