Swell wrote:
don't really know but i tried with that filename :aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.pdf (which containt 111 a if you trust me :) and get the error ticket , showing this last call File "C:\Users\M\Desktop\web2py_src\web2py\gluon\sql.py", line 2699, in store dest_file = open(pathfilename, 'wb') IOError: [Errno 2] No such file or directory: 'C:\\Users\\M\\Desktop\ \web2py_src\\web2py\\applications\\Library/databases\\..\\uploads\ \books.file.acf7b28c26fb29c3.6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161.pdf' (the filename is 205 characters long ,but pathfilename is proably bigger). Do you know if the 255 limit is python limit ? Where does it come from ? any idea how to sort it out without changing the pathfilename to a shorter version(actually the generated filename could be changed to something shorter but i don t know where it is generated )? M BTW , i use 1.79.2
I guess this is under Windows Vista or 7, judging by the start of the pathname. I notice there is a forward slash between "Library" and "databases" - perhaps this is confusing the operating system? Everywhere else in the path are double backslashes. There is also a ".." between "databases" and "uploads" - seems a bit suspicious (although it should just refer to the parent directory). Rowdy

