Closed fivestarenemy closed 9 years ago
Whats ur snippet's call?
[[!FileDownload? &getDir=[[++core_path]]downloads
,[[++base_path]]assets/portfolio/print &noDownload=1
&browseDirectories=1
]]
Is this a bug? Or is it something wrong with my code/settings?
hhmm... is the other domain in the same server? Is it just a subdomain? In my test in subdomain, it works just fine. http://revo.virtudraft.com/filedownload-r/filedownload-basic
I do have two domains. The server I'm renting has a domain controlling the root. I have a sub directory for my domain. For some reason it wants to go past my directory.
I don't think file browsing is allowed through cross-domain. Do you mind to email me directly to elaborate your case? goldsky.milis at gmail nospam dot com
thanks.
Okay. I found out what my problem was.
I used: &getDir`[[++core_path]]assets/files/downloads, [[++base_path]]assets/files/downloads, assets/files']]
Changed it to:
&getDir=[[++core_path]]files/downloads,[[++base_path]]assets/files/downloads, assets/files
]]
I guess the core_path didn't like me being identical to the base_path.
When I upload a file it doesn't link to my domain directly. It breaks because it's going all the way back to my root folder (my Modx site is in a sub folder with my other domain pointing to it).
The file paths look like:
http://www.domain1.com/home3/rootfolder/public_html/domain2folder/assets/portfolio/print.pdf
I have been trying to get it to look like this: http://www.domain2.com/assets/portfolio/print.pdf
All my other packages work fine with this. How can I correct this?