text: Title: SDK task.upload_data() cannot be used with resources of the Path type
  Body: ### Actions before raising this issue
  
  - [x] I searched the existing issues and did not find anything similar.
  - [x] I read/searched [the docs](https://docs.cvat.ai/docs/)
  
  ### Steps to Reproduce
  
  SDK has a `Task.upload_data()`, which claims to support `StrPath`-typed `resource`s, but it is actually only works for `LOCAL` `resource_type`.
  
  https://github.com/cvat-ai/cvat/blob/fec040db35eb5f69694cded87e2c0ba8ebb20199/cvat-sdk/cvat_sdk/core/proxies/tasks.py#L73
  
  ### Expected Behavior
  
  Task should be created.
  
  ### Possible Solution
  
  Remove invalid error here: https://github.com/cvat-ai/cvat/blob/fec040db35eb5f69694cded87e2c0ba8ebb20199/cvat-sdk/cvat_sdk/core/proxies/tasks.py#L112-L114, replace it with a type conversion.
  
  ### Context
  
  _No response_
  
  ### Environment
  
  ```Markdown
  
  ```