fileHandler

fileHandler - receive attachments from your Snapforce file repository or any record file log.

Description

 

fileHandler(array('module' => 'Files',
                'target_url' => 'http://fullpagetoreceivingscript.com',
                'solution_id' => '250',
                'filepath'=>"Files/solutions/solution_250",
                'filename'=>"example.png"));

 

Parameters

* module - Files

* target_url - the full web page or file on your server, the receiving script. 

* filepath - the full filepath of the attachment you want sent to the target_url

* filename - the name of the file with the file's extension.

  solution_id - if this applies to the file you are receiving, the unique id of the solution record where the file is stored (optional)

 

Returned Values

This function returns an xml response with the following response tags:

  • sf_response_code
  • sf_response_message