Getting attachment name on the web

koray_uygun
koray_uygun used Ask the Experts™
on
Hi,
i have a mask that users fill with internet explorer. In this mask there's an upload control so they can attach a file. There's a hidden field that wants to get the attachment name. What i want is when i submit the mask, the launched agent (lotus script agent) finds the name of the attachment and puts it in my hidden field. Do you have an idea?
My code :
If contribution.HasEmbedded Then
     Forall o In contribution.EmbeddedObjects
          If ( o.Type = EMBED_ATTACHMENT ) Then
               contribution.PhotoName = o.name               End If
          end Forall
End If

has a Type mismatch error on the forall line.

Thnaks by advance,
Koray.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Did you read this ?

For file attachments, this property returns an empty string (""). If the embedded object or object link does not have a name, this property returns an empty string ("").

If the embedded object or object link was created using the EmbedObject method in NotesRichTextItem, this property returns the name$ parameter that was used with EmbedObject.

-Arun.

Author

Commented:
Yes, Arunkumar, i have red this afterwards, now i don't know what to do.
Use @AttachmentNames in the Contributions Field.

Author

Commented:
contribution was a document but anyway @attachmentnames works so thank you!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial