.. _doxcsid-class_p1_1_1_camera_sdk_1_1_camera_1a1a27965e2bc76db8ab746edd952182b1: Camera.UploadFile Method ++++++++++++++++++++++++ Definition """""""""" *Namespace:* ``P1Sdk`` Sends a file to the connected camera .. ref-code-block:: csharp :class: doxyrest-overview-code-block public void UploadFile(:ref:`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. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - fileId - The type of file to upload * - filePath - Path to the file * - :ref:`SdkException ` - Throws an exception, if the upload fails, or if the file Id (enum) is unsupported