My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
I've tried to delete that one aswell... And under
<FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
I've deleted "pdf" and "PDF" and tried that aswell.. No luck :/
It works smooth with png, jpg, zip.
But not html, css, pdf etc doesnt work.
NO NO NO![]()
you don't DELETE the .htaccess file!!!!!!!!
and you DON'T want to delete these commands (it should be OBVIOUS why if you read the comments -- I've highlighted the relevant portions)
html, css, WON'T work because they are NOT in the allowed files list. My suggestion is to restore the default .htaccess file for the downloads folder that comes with Zen Cart.Code:# deny *everything* <FilesMatch ".*"> Order Allow,Deny Deny from all </FilesMatch> # but now allow just *certain* necessary files: <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$"> Order Allow,Deny Allow from all </FilesMatch>
AND
IF you've deleted or monkeyed with ANY of the other .htaccess files, you need to restore those with the ones that come with Zen Cart too..
Last edited by DivaVocals; 11 Dec 2013 at 04:10 PM.
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Hey, DivaVocals, thanks so much for stepping in - I didn't get an email notification and didn't know the original question was asked.
@JDAhlbom - DivaVocals already explained everything and was accurate to the point. Just follow her advice and you should be able to solve your problem. Notice the highlighted section.![]()
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Hi again,
I did that but still no luck. Nothing happens when I upload the PDF-files.
It's okey since I made my own script to upload files from admin :)
Thnx anyway.
I alterd the files as they had instructed in a previous post, however, it is still not adding them to where my actual downloadable files are. Would any one have any suggestions, becuase I love the mod.
Here are the files that I altered by putting the filepath to my folder.
dfm_filelist.php - line 33, 63, 135, 136, 137, 138
upload.php - line 15
They are all altered with something along the lines of this download/myfolder.
Thanks s much in advance for any help!!
If you followed the instructions properly, it should work. My guess is you probably missed something, but can't tell what. If you want, feel free to PM me with your FTP access and I'll be glad to take a look for you. Of course, reason and solution will be posted here.
OK, so here's a solution for kentuckygurl's problem.
Problem description: custom directory named XYZ inside the standard download directory. DFM lists all files, but doesn't upload to that directory.
Solution: the required edit in upload.php file was done wrong, it was missing a trailing slash.
So, if anyone else tries doing this, remember that you need to add a trailing slash to your folder's name:
upload.php, line 15:
Code:if(move_uploaded_file($_FILES['upl']['tmp_name'], '../download/XYZ/'.$_FILES['upl']['name'])){