Perhaps you can use this information --
Q: I know that when you use a filter to set an attachment field (not pool)
to a character field that it gives you 3 pieces of information. It looks
like this: 85188;80080;C:\Documents and Settings\My Documents\Adobe\myPEHP
Agreement.pdf. I know the first number is the size and the last is the full
file name. What is the second number?
A: typedef struct ARAttachStruct
{
char *name;/* name of attachment */
ARLong32 origSize;/* pre-compression number of bytes */
ARLong32 compSize;/* post-compression number of bytes */
ARLocStruct loc; /* how to locate attachment content */
} ARAttachStruct;
ie compressed size.
In short, set fields to a char field, read from attachment field. Parse the
char field to find out attachment size.
Then error out on save/modify in filter if size allowed size.
On Fri, Apr 11, 2008 at 11:23 PM, Frank Caruso [EMAIL PROTECTED]
wrote:
** Is there anyway to get the size of a file in an attachment field? I
would like to check the size of the file to ensure that it will fit before
the user clicks Save.
Thank you
__Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are
html___
___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are