Uploads a file as an attachment to an entry.


public void file_uploadFile( String accessToken, long entryId, String formDataItemName, String fileName );


The file_uploadFile operation uploads a file as an attachment to an entry. You can attach only one file at a time; call this operation multiple times to attach more than one file to the entry.

Because transferring files across the Internet can be time-consuming, you can upload files that have already been moved to a staging area on the Vibe server by using the folder_uploadFileStaged operation.

Parameters and Return Value


Either the security token passed to your application by Vibe as part of implementing a remote application, or the null value.


The identifier of the entry that is to include the new attached file.


A string containing the internal identifier for the part of the entry that contains attached files. This identifier maps the name attribute of an input HTML tag on a form to data in the Vibe database; a hidden HTML tag communicates this file mapping to the server.

The name value for the standard entry element containing attached files is ss_attachFile. If you want to upload a file into a custom form element you defined by using the designers, you need to look up the name identifier for that form element.

If you are uploading to a folder file, specify upload as an argument to this parameter to make this attachment the primary file for the entry.


A string containing the filename of the file you want to attach to the entry.



See Also