sakeGetFileIdFromHeaders
If the file was uploaded successfully, this function obtains the fileid that references the file.
- gsi_bool sakeGetFileIdFromHeaders(
- const char * headers,
- int * fileId );
Routine | Required Header | Distribution |
---|---|---|
sakeGetFileIdFromHeaders | <sake.h> | SDKZIP |
Return Value
gsi_true if able to parse the fileid successfully, gsi_false otherwise.
Parameters
- headers
- [in] The headers to parse for the fileid. Can obtain these by calling ghttpGetHeaders.
- fileId
- [ref] reference to the uploaded fileid.
Remarks
To get the fileid from the headers manually, look for the “Sake-File-Id” header. Once obtained, the fileid can now be stored in a fileid field in the database.
*Note that If a file is uploaded, but the fileid is not stored in the database, then the file will be automatically deleted by the backend after approximately 24 hours.
Section Reference: Gamespy Sake SDK
See Also: HTTP\ghttpGetHeaders