多商户版上传图片功能服务在Mac开发环境下报错的问题

发布于 2021-08-05 15:15:51

【产品名称】: likeshop多商户企业源码版

【产品版本】:1.2.2.20210719

【是否已二开】:否

【部署方式】:本地nginx

【项目部署环境】:Mac本地开发环境 

【php版本】:7.3.23

【Mysql版本】:5.7

【使用终端】手机H5 /管理后台

【遇到问题描述】:多商户版上传图片功能服务在Mac开发环境下后台管理和前端都报错的问题

【报错信息】:

多商户版上传图片功能服务在Mac开发环境下报错的问题

问题分别出现在后台管理端和前端

1.后台管理端上传图片报错相关信息

调用地址: admin/Upload/image.html

错误提示: 请求上传接口出现异常

摘要

URL: http://localhost.xxx.xxx.com/admin/Upload/image.html

状态: 500 Internal Server Error

来源: 网络

地址: 127.0.0.1:80

初始化程序: 

layui.js:4:27444

请求

POST /admin/Upload/image.html HTTP/1.1

Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryFAA8wA0WfqCXZDdh

Accept: application/json, text/javascript, */*; q=0.01

Accept-Language: zh-cn

Accept-Encoding: gzip, deflate

Host: localhost.xxx.xxx.com

Origin: http://localhost.xxx.xxx.com

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15

Connection: keep-alive

Referer: http://localhost.xxx.xxx.com/admin/file/lists?type=10&&shop_id=0

Content-Length: 20557

Cookie: PHPSESSID=08477ec56bea4f364e301d1dd667ff0f

X-Requested-With: XMLHttpRequest

响应

HTTP/1.1 500 Internal Server Error

Date: Thu, 05 Aug 2021 06:48:04 GMT

ETag: "5f73456e-1ee"

Content-Type: text/html

Connection: close

Content-Length: 494

Server: nginx/1.19.3

请求数据

MIME类型: multipart/form-data

边界: ----WebKitFormBoundaryFAA8wA0WfqCXZDdh

请求数据: 

------WebKitFormBoundaryFAA8wA0WfqCXZDdh

Content-Disposition: form-data; name="file"; filename="xxx.png"

Content-Type: image/png

------WebKitFormBoundaryFAA8wA0WfqCXZDdh

Content-Disposition: form-data; name="cid"

26

------WebKitFormBoundaryFAA8wA0WfqCXZDdh

Content-Disposition: form-data; name="type"

10

------WebKitFormBoundaryFAA8wA0WfqCXZDdh--

======

2.前端上传图片调用api相关信息

调用Api: /api/file/formimage

错误提示: 上传失败,请重试

http请求信息

请求

POST /api/file/formimage HTTP/1.1

Content-Type: multipart/form-data; boundary=----WebKitFormBoundarywmoFvfwCdi23r8Wl

Accept: */*

Accept-Language: zh-cn

Accept-Encoding: gzip, deflate

Host: localhost.xxx.xxx.com

Origin: http://localhost.xxx.xxx.com

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15

Connection: keep-alive

Referer: http://localhost.xxx.xxx.com/

Content-Length: 20372

Cookie: PHPSESSID=08477ec56bea4f364e301d1dd667ff0f

token: 86117ae1f3cb6a49d428716389e837b5

响应

HTTP/1.1 500 Internal Server Error

Date: Thu, 05 Aug 2021 06:42:40 GMT

ETag: "5f73456e-1ee"

Content-Type: text/html

Connection: close

Content-Length: 494

Server: nginx/1.19.3

请求数据

MIME类型: multipart/form-data

边界: ----WebKitFormBoundarywmoFvfwCdi23r8Wl

请求数据: 

------WebKitFormBoundarywmoFvfwCdi23r8Wl

Content-Disposition: form-data; name="file"; filename="xxx.png"

Content-Type: image/png

------WebKitFormBoundarywmoFvfwCdi23r8Wl--

查看更多

关注者
0
被浏览
92
2 个回答
<font color=#0084ff>官方</font> 令狐冲
官方 令狐冲 2021-08-06
This guy hasn't written anything yet
登录后查看是否有阅读权限
后崖
后崖 2021-08-07
This guy hasn't written anything yet
登录后查看是否有阅读权限

撰写答案

请登录后再发布答案,点击登录

分享
好友

手机
浏览

扫码手机浏览