Attaches a file to this compose item. This action must be specified as a subcommand of Compose.Action.
Specifies the item being composed.
Specifies the name of the file to be attached.
Specifies the context identifier for this user’s session.
Value |
Description |
---|---|
Item.Attachment.count |
Number of attachments this item contains. |
Item.Attachment[n].id |
Identifier of the nth attachment. |
Item.Attachment[n].name |
Name of the nth attachment. |
Item.Attachment[n].type |
Type of the nth attachment. |
Item.Attachment[n].size |
Size of the nth attachment. |
Item.Attachment[n].filename |
File name of the nth attachment. |
Item.Attachment[n].category |
Category of the nth attachment. |
Item.Attachment[n].mimeType |
Mime type of the nth attachment. |
Item.Attachment[n].Library.id |
Library identifier of the nth attachment (document reference). |
Item.Attachment[n].Document.id |
Document identifier of the nth attachment (document reference). |
Item.Attachment[n].Document.version |
Document version of the nth attachment (document reference). |
Compose.id |
ID of this composition. |
Item.type |
Type of the item: Mail, Appointment, Task, Note, or Phone. |
Item.to |
List of To recipients. |
Item.cc |
List of CC recipients. |
Item.bc |
List of BC recipients. |
Item.dateStart |
Start date if the item is an appointment or note. |
Item.dateEnd |
End date if the item is an appointment or the due date if the item is a task. |
Item.location |
Location of the appointment. |
Item.taskPriority |
Priority of an item if the item type is a task. |
Item.Task.startDate |
Start date if the item is a task. |
Item.caller |
Caller if the item type is Phone. |
Item.company |
Company if the item type is Phone. |
Item.phone |
Phone number if the item type is Phone. |
Item.duration |
Duration if the item is an appointment. |
Item.durationType |
Duration type for an appointment: 1=minutes, 2=hours, 3=days. |
If the item has an enclosure, such as the original message when forwarding or delegating a message, the following might also be returned:
Value |
Description |
---|---|
Item.Enclosure.id |
Enclosed item. |
Item.Enclosure.drn |
GroupWise identifier of the enclosed item. |
Item.Enclosure.type |
Item type of the enclosure: Mail, Appointment, Note, Task, or Phone. |
Item.Enclosure.from |
Sender of the enclosed item. |
Item.Enclosure.fromFullId |
Full ID (userid.postoffice.domain) of the sender of the enclosed item. |
Item.Enclosure.priority |
Priority of the enclosed item. |
Item.Enclosure.toId |
User IDs of the To recipients of the enclosed item. |
Item.Enclosure.toFullId |
Full resolved IDs of the To recipients of the enclosed item. |
Item.Enclosure.toName |
Display names of the To recipients of the enclosed item. |
Item.Enclosure.ccId |
User IDs of the CC recipients of the enclosed item. |
Item.Enclosure.ccFullId |
Full resolved IDs of the CC recipients of the enclosed item. |
Item.Enclosure.ccName |
Display names of the To recipients of the enclosed item. |
Item.Enclosure.subject |
Subject of the enclosed item. |
Item.Enclosure.message |
Message of the enclosed item. |
Item.Enclosure.subType |
Subtype of the enclosed item. |
Item.Enclosure.read |
Read status of the enclosed item. |
Item.Enclosure.accepted |
Accepted status of the enclosed item. |
Item.Enclosure.completed |
Completed status of the enclosed item. |
Item.Enclosure.Child.id |
Enclosed ID of the enclosed item. |
Item.Enclosure.Child.depth |
How deeply nested the enclosure is. For example, if you're forwarding a forwarded item, the original item would have a depth of 2. |
Item.Enclosure.dateSent |
Send date of the enclosed item. |
Item.Enclosure.dateStart |
Start date of the enclosed item. |
Item.Enclosure.dateEnd |
End or due date of the enclosed item. |
Item.Enclosure.ReplyRequest.type |
Type of the reply request of the enclosed item. |
Item.Enclosure.ReplyRequest.date |
Date associated with the reply request of the enclosed item. |
Item.Enclosure.location |
Location of the enclosed appointment item. |
Item.Enclosure.Task.priority |
Priority of the enclosed item. |
Item.Enclosure.Task.startDate |
Start date of the enclosed task item. |
Item.Enclosure.caller |
Caller of the enclosed phone item. |
Item.Enclosure.company |
Company of the enclosed phone item. |
Item.Enclosure.phone |
Phone number of the enclosed phone item. |
Item.Enclosure.isAutoDate |
1 if the enclosed item is an auto-date item. |
Item.Enclosure.security |
Security of the enclosed item. |
When the servlet uploads a file, it creates additional name value pairs from the File input field. The new pairs are created by adding .name and .size to the end of the value of the Name attribute of the File input field. The .name variable is assigned the name of the uploaded file, and the .size is the size of the uploaded file.
In the example, if the user enters a file name of myfile.dat in the file input field, the servlet will create the following two name value pairs in addition to the others specified in the form:
Item.Attachment.name=myfile.dat Item.Attachment.size=58734
NOTE:To make the browser upload the file, the EncType attribute of the form tag must have a value of multipart/form‑data, as shown in the following:
<FORM EncType="multipart/form-data">
<FORM METHOD=POST ACTION="/servlet/webacc" EncType="multipart/form-data"> Attach File: <INPUT Type="file" Name="Item.Attachment"> <INPUT Type=submit Name="Compose.Attach.Add" Value="Add"> <INPUT type="hidden" name="User.context" value="elnqZdgimsEm"> <INPUT type="hidden" name="action" value="Compose.Action"> <INPUT type="hidden" name="Compose.Attach" value=""> <INPUT type="hidden" name="Compose.id" value="1"> <INPUT type="hidden" name="merge" value="send"> <INPUT type="hidden" name="Url.Enclosure.type" value=""> </FORM>