开发者问题收集
我以前从未遇到过这种情况。我正在使用 Meteor.js步骤 1. Meteor npm install cloudinary步骤 2. 在客户端文件中,我导入包 import { Cloudinary } from "cloudinary";当我在本地运行 Meteor 时,出现以下错误:Uncaught TypeError: Cannot read properties of undefine
我正在使用 Cloudinary 上传图片,然后显示图片和 URL。图片正在上传,但我无法显示图片或 URL,因为我的 if (response.body.secure_url !== '' 中出现了 TypeError。我研究并读到,这可能是因为我正在访问一个为 null 的对象的属性App.jsthis.state = {uploadedFile: null,uploadedFileCloud
更新五我刚刚进行了调试,这是日志(箭头出现在第 61 行),因此看起来产品项目会失败。 47: def create48: @product = Product.new(product_params)49:50: respond_to do |format|51: if @product.save52:53: if params[:images]54:
我正尝试使用 Lepozepo/cloudinary 上传照片这是我的服务器和客户端配置服务器:Cloudinary.config({cloud_name: '*****',api_key: '******',api_secret: '********'});客户端:$.cloudinary.config({cloud_name: "*******"});我尝试使用表单上传图像html 表单代码:
我使用 Lepozepo: CLoudinary 包上传图片时,出现了上述错误信息,详细信息如下。console.log 显示上传成功并显示文件。上传后,我没有看到图片。个人资料图片也没有改变。可能是未定义 public_id,因此无法将其保存到 Meteor.userId()?进度条未显示删除按钮错误更改删除代码后出现第三条错误消息代码如下:服务器的 config.jsCloudinary.co