Network error with axios and react native

前端 未结 7 2346
暗喜
暗喜 2021-01-19 13:35

I have created an API endpoint using the Django python framework that I host externally. I can access my endpoint from a browser (mydomain.com/endpoint/) and ve

7条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-19 14:05

    THE SOLUTION is: on Android you need to specify the file path with file:// as prefix. So do like this:

          const audio = {
            uri: 'file://' + this.recorder.fsPath,
            type: 'video/mp4',
            name: filename
          }
    

提交回复
热议问题