Re: [web2py] Re: File name too long?

2012-09-17 Thread Massimo Di Pierro
This may not trigger a migration if it causes data truncation. You may have to do it manually (create a dumy field, move data in there with a script, and then move it back). On Monday, 17 September 2012 11:54:04 UTC-5, rochacbruno wrote: > > What if I change in DAL my upload fields to the "len

Re: [web2py] Re: File name too long?

2012-09-17 Thread Bruno Rocha
What if I change in DAL my upload fields to the "length=128" then the migration will truncate the existing image names? or I need to backup and re-upload them after this? --

Re: [web2py] Re: File name too long?

2012-07-06 Thread Anthony
Also, keep in mind that the encoding doubles the original filename length, plus the table name, field name, and a 16 character uuid fragment are added. Anthony

Re: [web2py] Re: File name too long?

2012-07-06 Thread Jonathan Lundell
On 6 Jul 2012, at 8:26 PM, Anthony wrote: > If you set the length attribute of the uploadfield the filename will be > truncated accordingly. > As jonathan says, the length of uploadfield is filesystem dependent. Set it > to 128 or 256 to be safe. > > Currently, it defaults to 512 characters (sa

[web2py] Re: File name too long?

2012-07-06 Thread Anthony
> > If you set the length attribute of the uploadfield the filename will be > truncated accordingly. > As jonathan says, the length of uploadfield is filesystem dependent. Set > it to 128 or 256 to be safe. > Currently, it defaults to 512 characters (same as a string field).

[web2py] Re: File name too long?

2012-07-06 Thread Massimo Di Pierro
If you set the length attribute of the uploadfield the filename will be truncated accordingly. As jonathan says, the length of uploadfield is filesystem dependent. Set it to 128 or 256 to be safe. On Friday, 6 July 2012 20:42:50 UTC-5, rochacbruno wrote: > > Hi! > > Recently, many users of a so