Hi Alan, Just now getting back to this days later...
Your code also threw the same error so before I un-commented the if statements in dal.py I added some print statements and can see the list of fields, then the name of the filename field as 'filename' followed by wiki_media.filename.9b724ad17775d60e.63617266696c65732e747874.txt as the value being tested for a 'file' attribute and a 'filename' attribute before calling the store function...(again?) This is confusing so I guess I'll do as you suggest and take out those lines of code. >>> 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.9b724ad17775d60e.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 8280, in insert self._attempt_upload(fields) File "C:\web2py-1045bab06391\web2py-1045bab06391\gluon\dal.py", line 8262, in _attempt_upload raise RuntimeError("Unable to handle upload") RuntimeError: Unable to handle upload >>> On Tuesday, January 29, 2013 8:00:58 PM UTC-6, Alan Etkin wrote: > > Replacing the store call with this should avoid the error: > > file_id=db.wiki_media.insert(filename=db.wiki_media.filename.store(stream,filename > =<a file name>, path=file_path) > > > -- --- 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.