将base64图像上传到Cloudinary时出错

时间:2017-03-01 21:08:57

标签: php base64 cloudinary

当我尝试上传他们的示例base64(它有85bytes)时:

\Cloudinary\Uploader::upload("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")

一切都很好,但当我尝试上传一些我的图片时,它说:

致命错误:未捕获的异常' Cloudinary \ Error'与消息'错误在发送请求到服务器 - couldn'吨打开文件"数据:图像/ PNG; BASE64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz AAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAPCSURB VGiB7ZlLaFxlGIaf72SMNQloQemcGQRvaJGW1GQiCN4mmzhn4lKEJk0V3' ...

0 个答案:

没有答案