# save filename on save to file name field
try:
if len(request.vars.resume_bin.filename):
request.vars.resume_bin_filename =
request.vars.resume_bin.filename
except:
pass
form=crud.update(.....)
# change the 'file' text in the form to the actual file name
try:
form[0][form_field_number][1][0][2][0]=form.latest.resume_bin_filename
except:
pass
On Wed, Dec 9, 2009 at 10:15 PM, Wes James <[email protected]> wrote:
> I've been looking on the list to see if I can see any examples to show
> the real file name by the input field on the form. The generic form
> is like:
>
> field label text, field input box, [file|delete]
>
> If a file has been uploaded.
>
> How can I have it show the file name instead of "file" on the field on the
> form?
>
> thx,
>
> -wes
>
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.