[Product-Developers] Getting filename from FileField in custom AT content type

Khairil Yusof kaeru at inigo-tech.com
Fri Jan 16 05:14:40 UTC 2009


I have an AT type with a FileField called attachment1 with an uploaded
file.

Getting MIMETypes is ok.

obj.attachment1.getContentType() 

but the following returns None,

obj.attachment1.getFilename() 

It shows up ok in ZPT (accessor/filename) but I can't seem to access it
via python. 

I'm probably missing something obvious here, but can somebody help point
to me where this value is is stored and how do I access it?

Regards





More information about the Product-Developers mailing list