title: FileSystemException: Cannot retrieve length of file, path = '
body: <p>I am trying to upload a thumbnail created by this <a href="https://pub.dev/packages/video_thumbnail" rel="nofollow noreferrer">library</a> of a video.In app i am sending images through same method but when i try to send this thumbnail  it throw exception FileSystemException: Cannot retrieve length of file, path</p>
  <p>this is how  i am creating thumnail</p>
  <pre><code>final uint8list = await VideoThumbnail.thumbnailData(
          video: _videoFile!.path,
          imageFormat: ImageFormat.JPEG,
        );
  
        /// uploading both thumbnail and video
        _videos.add(
          VideosModel(
            id: await FileUploader.uploadFile(_videoFile, &quot;POST_VIDEO&quot;),
            posterId:
                await FileUploader.uploadFile(File.fromRawPath(uint8list!), &quot;POST_IMG&quot;),
          ),
        );
      }
  </code></pre>
  <p>this is how i am sending images</p>
  <pre><code>static Future&lt;String&gt; uploadFile(File file, String ref) async {
      String fileName = file.path.split('/').last;
      FormData formData = FormData.fromMap({
        &quot;file&quot;: await MultipartFile.fromFile(file.path, filename: fileName), // error is here in file.path
      });
      Response response =
          await UATHTTPClient().dio.post(&quot;v1/aws/upload&quot;, data: formData, queryParameters: {
        &quot;ref&quot;: ref,
      });
      return response.data['id'];
    }
  </code></pre>