Hi I may hae found something if i look at line 2688 in gluon/sql.py i can see in the function store: newfilename = newfilename[:200] + '.' + extension
but so far so good it doesn t break anything to truncate the filename. later in the function ( line 2699) i see pathfilename = os.path.join(path, newfilename) dest_file = open(pathfilename, 'wb') and then an exception is thrown here so it seems it is an open issue i think that if we can t fix this bug , maybe adding some exception handling code here would be intersting. don t know yet if it is coming from python(2.6.4),windows 7 64, .... but at least we know the web2py call that breaks it.