This isn't working for me. I see Yarko's screenshot and that is exactly what I want.
I'm running 1.65.11. The only difference is that I'm trying to upload an ASCII .txt file, but that shouldn't make a difference. The ascii file is being uploaded to no_table.filename.8151ed45a69a545e. 31445f312e747874.txt. I'm still getting None for the form.vars.filename_newfilename and FieldStorage object for form.vars.filename. I don't know ... any idea what's going on? Here's my full routine: def raw(): form = SQLFORM.factory( Field('filename','upload', requires=IS_NOT_EMPTY('Please specify filename')), ) if form.accepts(request.vars,session): response.flash = 'form accepted - uploaded %s' % \ form.vars.filename_newfilename elif form.errors: response.flash=DIV(form.errors,_class='error') return dict(form=form, vars=form.vars.filename, new=form.vars.filename_newfilename) How do I embed a screenshot in here? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---