check form.vars['filename_newfilename'];

see the section "SQLFORM and uploads" in the manual (~ p.195)

On Sat, Sep 19, 2009 at 6:13 PM, weheh <richard_gor...@verizon.net> wrote:

>
> I want to enable upload of a long string via a text field, that I will
> then save as a file and store in the same place as uploaded files. I
> generate the filename automatically, ensuring it's unique. I save the
> filename into the db.table.filename, where filename is Field
> ('filename','upload'). This all happens without any problems.
>
> However, when it comes time to download the file, I get a 404 error,
> meaning the file can't be found.
>
> Is there something special I have to do to somehow register the file
> so that web2py and download know that it's there?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to