ok, hey anthony,

having trouble, so i get your above explanation.  here is my function:

#undecorated
def dl():
    return response.download(request, db)

the url would be something like:

https://localhost/iquanta1/main/dl/myfile

or

https://localhost/iquanta1/main/dl/myfile.pdf

both are giving me 404.  the response.download function is getting the
name ok.  but seems to return None with:

items = re.compile('(?P<table>.*?)\.(?P<field>.*?)\..*').match(name)

because in debugging i copied the response.download code in dl() and
see where the 404 is actually coming from.  i did "import re" to make
sure it had that.  i am terrible at regular expressions, but i think i
get the gist.

please explain why i might be bugging out with a 404.  the file is
there and i did upload it and i can see the list under ls.  i can't
directly read the file name of course cuz it is encoded, but the list
seems to match what is in the database.

also, looking at the code, it looks like it downloads the contents of
the file from the actual database and not from uploads, is that
correct?  if so, it is only using uploads for the encoding of the
filename, correct?

lucas

Reply via email to