Returning a protected file
Hi all I want an anonymous user to request an URL like: http://anon:9999/feko/get?key=IM5R5M&file=foo.tar.gz If the URL contains an acceptable key the 'get' method, which has a proxy role of Manager, returns 'foo.tar.gz' from a folder where anonymous doesn't have view rights. I don't want anonymous to get the file without the key. This almost works, but the file is returned with the name 'get', instead of 'foo.tar.gz'. Any idea how to get the file returned under the correct name? TIA, -- Jean Jordaan http://www.upfrontsystems.co.za
This almost works, but the file is returned with the name 'get', instead of 'foo.tar.gz'. Any idea how to get the file returned under the correct name?
Ah, got it :) Change the URL to look like this: http://anon:9999/feko/get/foo.tar.gz?key=IM5R5M Make 'get' a Python Script, and subscript 'traverse_subpath' to get the filename (foo.tar.gz) to return. Muuuch better. -- Jean Jordaan http://www.upfrontsystems.co.za
participants (1)
-
Jean Jordaan