Great, thanks for the reply. I don’t think the TV will reference the way I was hoping. It appears that when the path is needed by the FileDownloadPlugin, the TV hasn’t parsed out yet (just guessing here).
I found that if i reference [*TV1*] in [*TV2*] and place [*TV2*] on a page, it displays the content of [*TV1*]. So for output purposes it looks like a TV can hold another TV, but this parsing must happen sometime after the plugins are parsed. I ended up solving my particular problem by having the path get created and placed in the FileDownloadFolder TV during a different process, which isn’t quite as dynamic, but should work great for my purposes.
I’ll check into the special character problem some more, thanks for the idea about URL encoding.
Edit:
In the URL, i replaced the "+" with "%2B" to test if URL encoding would help, but it still just refreshed the page, it didn’t start the download.
Thanks OpenGeek, But for some reason i’m still having trouble. I tried commenting out the lines of code you suggested (with each possible variation of the 2 different rewrite rules in .htaccess, and each choice un-commented) but I still just get a page refresh instead of the file if it has a "+" in the file name (even if i change it to %2B in the URL instead of the "+").
Thanks again, any other ideas?
OpenGeek, have you tried a file that has a "+" in the name? I don’t think I’ve experienced the problem with a "-".
-
MODX Staff
- 10,725 Posts
A plus sign equals a space in a URL. That likely needs to be urlencoded if it’s an actual plus sign and not a space.