如何使用react native将文件上传到pythonanywhere?

问题描述 投票:0回答:1

我正在尝试通过react-native构建应用,其中我需要将JSON文件上传到托管在pythonanywhere上的帐户文件夹中。

您能告诉我如何通过JSONpythonanywhere文件上传到react-native文件夹吗?

pythonanywhere
1个回答
0
投票

您正在使用的Web框架将提供有关如何创建可以接受文件上传的视图的文档。然后,您可以在JavaScript中使用fetch API将文件发送给它。

© www.soinside.com 2019 - 2024. All rights reserved.