Re: [web2py] Re: best practice for an upload with a very long file name

2011-06-29 Thread pbreit
I just ran into a problem with the Ebay API that does not accept image URL lengths over 150 chars. Is the only immediate fix to make that edit to gluon/sql.py? Maybe it should be even shorter of configurable? Is that much entropy needed?

[web2py] Re: best practice for an upload with a very long file name

2010-04-19 Thread Rowdy
mdipierro wrote: Any objection to make this 200? Massimo The limit seems to be NTFS with a maximum of 226 characters. I have accumulated nearly 60,000 files in a legacy application, and the longest extension is 5 characters (".batch"). No objection from me. Rowdy -- Subscription settings

[web2py] Re: best practice for an upload with a very long file name

2010-04-19 Thread mdipierro
Any objection to make this 200? Massimo On Apr 19, 6:22 pm, Rowdy wrote: > mdipierro wrote: > > I was not aware of this limit. > > > In gluon/sql.py you should replace: > > newfilename = newfilename[:500] + '.' + extension > > > with something like > > > newfilename = newfilename[:120] + '.' + e

[web2py] Re: best practice for an upload with a very long file name

2010-04-19 Thread Rowdy
mdipierro wrote: I was not aware of this limit. In gluon/sql.py you should replace: newfilename = newfilename[:500] + '.' + extension with something like newfilename = newfilename[:120] + '.' + extension perhaps this should be the default? Massimo That is exactly what I was looking for, an

[web2py] Re: best practice for an upload with a very long file name

2010-04-19 Thread mdipierro
I was not aware of this limit. In gluon/sql.py you should replace: newfilename = newfilename[:500] + '.' + extension with something like newfilename = newfilename[:120] + '.' + extension perhaps this should be the default? Massimo On Apr 19, 5:16 pm, Rowdy wrote: > Greetings, > > I am (still