That would require some changes in the code. It currently uses the modx path to get the start for the directory listing.
Is much code to change if directory listing is not required?
I didn’t mean the directory listing. I have not tried using an external url and am not sure it would work. atm, I don’t have time to try this, if you want to give it a shot it probably would not require to many code changes.
I argue that when the "my-file-domain" resides on a different server it will *not* work. All the directory commands the snippets uses can only access the local (i.e. server’s) filesystem.
So, if it’s just a different URL, not a different server, the modifications are not so hard to do. But otherwise...
Yes, the file-system residents on a different server! Is there another possibility to get it working (by using another snippet)?
-
☆ A M B ☆
- 24,524 Posts
Yes, using the PHP ftp functions.
http://il2.php.net/ftp
Quote from: simon79 at Aug 09, 2006, 08:02 AM
The FileDownload snippet has all features I need, but I moved my filestorage to another domain and now I´m looking for a possibility to get it working... It needs to work with the group-permissions and don´t need to work with features like directory listing etc...
No existing snippet or easy way to modify FileDownload?
Without the directory listing, what exactly would it do? Directory is another word for folder.
And how will group permissions work cross-domain?
I think you are barking up the wrong tree entirely. Just because a snippet is called FileDownload does not mean it can be easily adapted to download files from anywhere.
Is there any particular reason that you can’t run FileDownload (or similar) on the actual box with the files on it?
Why did you move your filestorage?