Re: [web2py] Re: upload bug in filename

2010-07-05 Thread Sw1
Hi There,
  Any updates or adises on my case ?


Thx

On Sat, Jul 3, 2010 at 5:39 PM, Swell  wrote:
> ok i hae done that and it complains about
> IOError: [Errno 2] No such file or directory:
> 'a
> 
> 
> a'
>
>
> it seems that there is a max length for the filename ( as described
> here 
> http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx#maximum%5Fpath%5Flength
> ). It maybe related to the fact that filename are encoded in base64
> which eentually be longer thant the original filename ( + all the
> decoration about table, fields , uid )
> So it seems to be not a direct web2py issue , but something that we
> need to address.
>
> How about changing the scheme creation to something shorter ( like
> table.field.uuid  and that is it ) That should be more portable . What
> are your thoughts ?
>


[web2py] filename length bug in sql.py under win32

2010-08-23 Thread Sw1
Hi,
  I posted some time ago a problem related to uploading a file with a
very long filename under window ( it crashes ). I have been able to
spot that the issue is in sql.py around line 2799( function store ).
So the pb is related to the python interpreter under win32 that
doesn't allow the creation of a file descriptor when the path+filename
is longer than 255 ( the ntfs filesystem does allow this but it seems
to be related to the way python handle it)

I don't really know what to do here but may i suggest to change the
naming scheme so that generated filename is shorter ( something
containing only a uuid and not the encoded part of the filename).

Cheers,