So I just replaced the first if statement with 'if True:' so that the code would execute. Looks like a unicode object does not have an attribute 'file'
(InteractiveConsole) >>> import test_tamoto_rpc as trpc >>> trpc.upload_file() C:\Users\bthayer\Documents\car\carfiles.txt wiki_media.id wiki_media.filedata wiki_media.cell_id wiki_media.lib_id wiki_media.layout_id wiki_media.wiki_page wiki_media.title wiki_media.meas_id wiki_media.filename filename wiki_media.filename.a8857e792725cc9c.63617266696c65732e747874.txt Traceback (most recent call last): File "<console>", line 1, in <module> File "C:\web2py-1045bab06391\web2py-1045bab06391\applications\TAMOTO\private\test_tamoto_rpc.py", line 38, in upload_file filedata=stream.read()) File "C:\web2py-1045bab06391\web2py-1045bab06391\gluon\dal.py", line 8281, in insert self._attempt_upload(fields) File "C:\web2py-1045bab06391\web2py-1045bab06391\gluon\dal.py", line 8258, in _attempt_upload new_name = field.store(value.file,filename=value.filename) AttributeError: 'unicode' object has no attribute 'file' >>> -- --- 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. For more options, visit https://groups.google.com/groups/opt_out.