BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

6005 :图片上传失败

Open horkooo opened this issue 5 years ago • 1 comments

在编辑文档的时候,上传图片,提示“保存文件失败”。

请求的链接:/api/upload?identify=guide&guid=1587371016249 返回的json:{"errcode":6005,"message":"保存文件失败"}

项目配置了OSS。oss.conf内容如下: `# 阿里云OSS配置 [oss]

是否是内网,如果您的阿里云服务器和OSS是同一内网,请设置为true,这样能更快地将文件移到oss上,否则设置为false。

一般情况下,在开发阶段,设置为false

IsInternal=false

内网Endpoint,如:oss-cn-hongkong-internal.aliyuncs.com

EndpointInternal= 我这里空着

外网Endpoint,如:oss-cn-hongkong.aliyuncs.com

EndpointOuter= 我这里空着

您的阿里云AccessKeyId

AccessKeyId= ID填写了,并且做了bucket授权

您的阿里云AccessKeySecret

AccessKeySecret=6gX*****************EtZZNi

只读状态的Bucket,不要私有的,也不要公共读写的

Bucket=zbooks

oss中绑定的域名,如果您没有绑定域名,则使用阿里云oss的自带域名也行

Domain=oss.zkii.net`

请教下是哪里的问题?目前最新release版本

horkooo avatar Apr 20 '20 08:04 horkooo

EndpointOuter=这里不能空 Domain=需要https或http

fengge2020 avatar Oct 10 '20 02:10 fengge2020