2 years ago
3
Topic

Hello! I try to mention the name and filesize of the attachment in a form without storage but I can't get it running.

I tried afterstore and field 42 without luck. Is this value even available when there is no storage? If so, how can I grab it?
Thank you!

Get a VIP membership
4229 Posts
Kadministrator
2 years ago
0
Level 1

I suggest you take a look at email field and how it does its processing,  AFAIK it works now with fields without storage, same logic should work for you.

2 years ago
0
Level 1

I opened the email.php file in the plugin but I can't see any information on how to retrieve the filesize of the attachment and to put it into the email body. Does it have to do with $options2['attachment_field'] ?
Thank you!

4229 Posts
Kadministrator
2 years ago
0
Level 1

Hi,

I don't think this information is available in afterstore at all, I think you only option would be to read the file again and extract its size like in upload_file.php onCCK_FieldPrepareStore method.

Get a VIP membership