[This is preliminary documentation and is subject to change.]
Assembly: App_Code.fxrph_yi (in App_Code.fxrph_yi)
Version: 0.0.0.0
Syntax
| C# |
|---|
public WS..::.GetPostFileInfoResult GetPostFileInfo( string AccessKey, string OriginalFileName ) |
| Visual Basic (Declaration) |
|---|
Public Function GetPostFileInfo ( _ AccessKey As String, _ OriginalFileName As String _ ) As WS..::.GetPostFileInfoResult |
| JScript |
|---|
public function GetPostFileInfo( AccessKey : String, OriginalFileName : String ) : WS..::.GetPostFileInfoResult |
Parameters
- AccessKey
- Type: System..::.String
Security key allocated to a developer enabling access to the web service API.
- OriginalFileName
- Type: System..::.String
Name of the file that will be posted. Ex: "my song.mp3"
Return Value
A unique random file name to be posted and the URL of the page to post the file to.
Remarks
There are 3 ways to get files into the Phone Sherpa system: 1) via the Flash client uploader, 2) via LoadFileFromURL(...) and 3) via HTTP POSTing a file to a URL. All three methods yeild the same result, a file that is loaded into the Phone Sherpa sysem and is available to be used in various API methods.
GetPostFileInfo does not do the posting, rather it provides information such that the developer can post files into the Phone Sherpa system. Developers should do a standard HTTP form POST of thier original file to the PostPageURL value and pass the RandomFileName as a querystring parameter "random_file_name".
Upon successful post, the RandomFileName can be used for any API taking a SourceFile parameter.
Note that files must be 10mb or less in size.