> > aux=db.files.file_upload.store(fileApp, filename) #db.files.insert(file_upload=aux,title=filename) *# USING THIS LINE IT > WORKS * > > *db.files.validate_and_insert(file_upload=db.files.file_upload.store(fileApp, > filename),title=filename)* # *THIS LINE CAUSES THE ERROR* >
But the traceback shows the error in the first line above (i.e., aux=...), so how can the second line work if the error occurs before it? Note, the first line runs unconditionally, even when there is no fileApp, so it should (and apparently does) raise an exception when there is no upload. Anthony > --