router on browsable directory

Notice: This thread is very old.
richard
Member | 60
+
0
-

Hello,

I have /www/user_files/documents/file.doc

How to setup router, so I get the file:

http://host/…oad/file.doc

Do I need to create fake presenter or what?

Thanks

redhead
Member | 1313
+
0
-

Not sure if you also want to browse the directory or just let it download the file.

If the latter, then you can use FileResponse

You can use it in a presenter action.

Last edited by redhead (2012-10-15 20:04)