Camera.UploadFile Method
Definition
Namespace: P1Sdk
Sends a file to the connected camera
public void UploadFile(UploadFileId fileId, string filePath);
This methods sends the file to camera. Whether or not the camera will handle the file depends on the camera model and firmware version.
If you send a firmware package, this method will return as soon as the file is sent. Not on successful installation.
When the file is being transferred to the camera, you can opt-in to receive FileTransferBegin, FileTransferProgress and FileTransferEnd notifications. This allows you to track the upload progress.
Parameters:
fileId |
The type of file to upload |
filePath |
Path to the file |
Throws an exception, if the upload fails, or if the file Id (enum) is unsupported |