On Fri, Jan 18, 2013 at 10:30 PM, Bruno Rocha <rochacbr...@gmail.com> wrote:

> db.files.validate_and_insert(file_upload=db.files.file_upload.store(fileApp,
> filename))
>

Seems that it is firing the validator but there is an issue:
<type 'exceptions.AttributeError'> 'NoneType' object has no attribute
'filename' Version  web2py™ (2, 3, 2, datetime.datetime(2012, 12, 17, 15,
3, 30), 'stable')  Python Python 2.6.6: /usr/bin/python  Traceback


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.


Traceback (most recent call last):
  File "/home/titog/Documents/Projetos/web2py/gluon/restricted.py",
line 212, in restricted

    exec ccode in environment
  File 
"/home/titog/Documents/Projetos/web2py/applications/cms/controllers/default.py"
<http://127.0.0.1:8000/admin/default/edit/cms/controllers/default.py>,
line 114, in <module>

  File "/home/titog/Documents/Projetos/web2py/gluon/globals.py", line
193, in <lambda>

    self._caller = lambda f: f()

  File 
"/home/titog/Documents/Projetos/web2py/applications/cms/controllers/default.py"
<http://127.0.0.1:8000/admin/default/edit/cms/controllers/default.py>,
line 85, in my_upload

    filename=fileApp.filename.replace(' ', '')
AttributeError: 'NoneType' object has no attribute 'filename'

  Error snapshot [image: help]

<type 'exceptions.AttributeError'>('NoneType' object has no attribute
'filename')

Not sure why...


-- 

Linux User #387870
.........____
.... _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_______

-- 



Reply via email to