Is there something wrong with the upload functionality or is just my app?

On Friday, December 8, 2023 at 7:39:49 PM UTC+2 mostwanted wrote:

> Hi guys, I recently 'upgraded' my web2py version to the latest version 
> (2.27.1) but i've forgotten the previous version. Now suddenly when i try 
> to submit forms i get this error:   'Field' object has no attribute 
> '__dir__'
>
> Below is the tracebeack
> Traceback
> Traceback (most recent call last):
> File "/home/sesoa/web2py/gluon/restricted.py", line 219, in restricted
> exec(ccode, environment)
> File "/home/sesoa/web2py/applications/init/controllers/default.py" 
> <https://www.sesoa.co.bw/admin/default/edit/init/controllers/default.py>, 
> line 
> 920, in <module>
> File "/home/sesoa/web2py/gluon/globals.py", line 463, in <lambda>
> self._caller = lambda f: f()
> File "/home/sesoa/web2py/applications/init/controllers/default.py" 
> <https://www.sesoa.co.bw/admin/default/edit/init/controllers/default.py>, 
> line 
> 315, in business_registration
> if form.process().accepted:
> File "/home/sesoa/web2py/gluon/html.py", line 2410, in process
> self.validate(**kwargs)
> File "/home/sesoa/web2py/gluon/html.py", line 2349, in validate
> if self.accepts(**kwargs):
> File "/home/sesoa/web2py/gluon/sqlhtml.py", line 2132, in accepts
> source_file, original_filename, field.uploadfolder
> File "/home/sesoa/web2py/gluon/packages/dal/pydal/objects.py", line 2075, in 
> store
> self._tablename if '_tablename' in self.__dir__() and self._tablename else 
> 'no_table',
> AttributeError: 'Field' object has no attribute '__dir__'
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/77ea5827-253d-4edd-b6fc-e2f4e4b7a423n%40googlegroups.com.

Reply via email to