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 On 15 juin, 05:32, Thadeus Burgess <thade...@thadeusb.com> wrote: > how long is the filename? > > Isn't there like a 255 char limit to filenames? > -- > Thadeus > > > > On Mon, Jun 14, 2010 at 4:58 PM, Swell <swel...@googlemail.com> wrote: > > Hi , > > I tried to send a file with a form containing a upload > > field( actually it is a SQLFORM). When i try to add a new record with > > the administrative db interface , it breaks if the filename if very > > long ( not sure where it comes from ). > > > Any idea? > > > Thx