我使用React js中的fetch api将请求发送到后端服务器。const formData = new FormData(); formData.append("userId", currentUser.idsend response to the client with amazon s3 image url
send_r
我们正在我们的应用程序中构建一个照片上传功能,该功能是使用react原生构建的。所以我的问题是,我有像上面这样的URI,我如何将文件的内容发送到我的API后端?它需要multipart/form-data,名称为"photo“。var formData = new FormData();但是我不知道如何获取文件的内容,也不知道如何将文件UR