logo

Response

« Return to the main article

You are viewing this page out of context. To see it in the context it is intended please click here.

About This Page

Reply posted by Dorian Farrimond on Mon 7 Jul 2003 in response to Controlling the Size of Uploaded Files

Attachments from a browser

Getting the names of attachments submitted via a browser is a pain, because the
only way to get them is by name, which is what you're trying to determine!


As an alternative to doing an evaluate to get the attachment names you can do
this:


Forall itmField in doc.Items
if itmField.Type = ATTACHMENT then
'itmField.Values(0) is the filename
'itmField.ValueLength is the file size
end if
end Forall




A bit inefficient but it does avoid having to load the formula interpreter to
process the evaluate command.