Thanks Mike!
FileApp and forward did the trick. I ended up storing my user-
uploaded files in a subdirectory (files) of my Pylons project root
directory. And I added my own authentication decorators to both the
view() and retrieve() actions of FileController so that
unauthenticated guests
On Tue, Mar 9, 2010 at 12:28 AM, Joel jrwdun...@gmail.com wrote:
My one reservation is that I don't really understand the routes
configuration that you suggested:
# Route
map.connect(file, /my_url/{path:.*}, controller=mycontroller,
action=my_action)
But that's understandable seeing as I
Hey Pylons people,
I'm trying to add file upload functionality to a Pylons project and
I'm following the Pylons Book example in chapter 6. Uploading the
file to a subdirectory ('uploads') of the data directory works fine.
Following the example, I set the permanent_store variable in
i store the files into a top-level directory called
user_uploads ( ie. on the same level as data and public )
i do this, only because i find it easier to handle backups /
redundancy
when the images are 'public', i have a symlink from public/_img/NAME
into that directory. just to note, i never
On Sun, Mar 7, 2010 at 9:42 PM, Mike Orr sluggos...@gmail.com wrote:
def my_action(self, path, environ, start_response):
Ignore the last two arguments. They were needed in older versions of
Pylons before the 'forward' utility existed.
--
Mike Orr sluggos...@gmail.com
--
You received this