pbreit wrote:
The filename that Web2py is giving my uploaded images is too long. Is it possible to make it shorter?

For example (i need them to be under 150 chars):
item.image.8651e61b27b66998.6974656d2e696d6167652e396363373962663466616535313834392e3533353434313566333233323331333432653461353034375f646973706c61792e6a706567.jpeg

Greetings,

I encountered something similar a while ago, and Massimo was good enough to implement a small change.

In dal.py there is a line that truncates long filenames:

class Field(Expression):
    <snip>
    def store(...):
        <snip>
        newfilename = newfilename[:200] + '.' + extension

I suspect you would be able to replace 200 with 150 (or slightly less if your 150 characters needs to include the dot and extension).

Rowdy

Reply via email to