如何将图像上传到服务器。我正在使用react,到目前为止,我的控制器如下所示: public object UploadAvatar() var file = HttpContext.Current.Request.Files.CountHttpContext.Current.Request.Files[0] : null;当我使用react和axios上传时,文件显示=
我有一个集合,因为有一个组件product_licenses数组,它接收数据和图像。如果我上传一个图片到Lis标签,它就能工作。但是,当我试图使用license标记上传到数组的第一个元素时,它会失败,因为它在里面。const entity = await strapi.services[ ].create(input);based on the entry and the model
我正在尝试将图像从React本地(仅在Android上)上传到ASP.net核心web的post端点。在我的react本地应用程序中,我使用了“react原生-图像-选择器”来像下面这样的照相机来捕捉图像。,我要添加它来形成数据和做axios调用如下所示。data.append('image', { u