You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Attachment Functionality

2 replies [Last post]
Guest's picture
Guest

Compshack,
I am not sure whether its me or it the explanation. While trying to understand the functionality of attachment,I am not clear on addattachment and putattacment.

For e.g. for AddAttachment:

&retcode = AddAttachment(URL.MYFTP, ATTACHSYSFILENAME, "", ATTACHUSERFILE, 0); ( In peoplebooks example )

My question is when the above peoplecode is fired which direction is the file moving from.

Lets say the appserver machine name is myappserver. And the URL.MYFTP points to a ftp server.

Will the file be transfered from ftp server to appserver or the other way ?
And what is the difference between AddAttachment and GetAttachment ?

CompShack's picture
User offline. Last seen 6 years 29 weeks ago. Offline
Joined: 12/09/2007
Posts: 167
Re: Attachment Functionality

GetAttachment function to transfer a file from the file server to the application sever.
PutAttachment function to transfer a file from the application sever to the file server.
AddAttachment function to transfer a file from one server to another.

My question is when the above peoplecode is fired which direction is the file moving from.

The example above is using AddAttachment, so you can only use it to transfer files bewtween servers and not application server.

check out my post using the PutAttachment to transfer a file from app server to file server.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

HH's picture
HH (not verified)
Re: Attachment Functionality

AddAttachment function to transfer a file from one server to another.

But then an application server is also a file server. Is it not ?

What does betwene 2 servers mean ?

Is it 2 different server other than web and file server ?