Comments (5)
需要运行后台程序 node-elm,电脑需要安装 GraphicsMagick
from vue2-manage.
多谢大神 请问一下简易的上传图片功能的开发你觉得哪个比较方法容易学一点= =
再次感谢!
from vue2-manage.
nodejs最简单
from vue2-manage.
npm run local运行时,
windows下经常图片上传失败,有时候会成功,
linux下没有这个问题,但是无法添加商品种类。
不知是什么原因。。。
from vue2-manage.
node
图片上传至七牛失败 { code: -1,
error: 'Error: ENOENT: no such file or directory, open 'D:\MU\Projects\vue2-elm\node-elm\public\img\food\15cadef8bf729.jpg'' }
保存至七牛失败 { code: -1,
error: 'Error: ENOENT: no such file or directory, open 'D:\MU\Projects\vue2-elm\node-elm\public\img\food\15cadef8bf729.jpg'' }
上传图片失败 保存至七牛失败
{
"res": {
"statusCode": 200
},
"req": {
"url": "/v1/addimg/food",
"headers": {
"cookie": "SID=s%3AqZhlSAdqD3PXwzicIINRyAPUazd0iE06.npx5zVNjg9jRSnwW3Z%2BCYUROdI7LVpkJCIG85KoGiPY",
"accept-language": "zh-CN,zh;q=0.8",
"accept-encoding": "gzip, deflate",
"referer": "http://localhost:8002/",
"dnt": "1",
"accept": "/",
"content-type": "multipart/form-data; boundary=----WebKitFormBoundaryhjzBjk8xAHcKNvAI",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.221 Safari/537.36 SE 2.X MetaSr 1.0",
"origin": "http://localhost:8002",
"content-length": "485649",
"connection": "close",
"host": "localhost:8001"
},
"method": "POST",
"httpVersion": "1.1",
"originalUrl": "/v1/addimg/food",
"query": {}
},
"responseTime": 1436,
"level": "info",
"message": "HTTP POST /v1/addimg/food"
}
图片上传至七牛失败 { code: -1,
error:
{ Error: ENOENT: no such file or directory, open 'D:\MU\Projects\vue2-elm\node-elm\public\img\food\15cadef8bf729.jpg'
at Error (native)
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'D:\MU\Projects\vue2-elm\node-elm\public\img\food\15cadef8bf729.jpg' } }
fs.js:101
throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
^
Error: ENOENT: no such file or directory, unlink 'D:\MU\Projects\vue2-elm\node-elm\public\img\food\upload_ca5789f8b0dd6c81dd1a3628d1085fd1'
at Error (native)
Program node --harmony index.js exited with code 1
Starting child process with 'node --harmony index.js'
连接数据成功
vue-manage:
[HPM] Error occurred while trying to proxy request /v1/addimg/food from localhost:8002 to http://localhost:8001 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
from vue2-manage.
Related Issues (20)
- 504
- 大佬为啥,我npm install 一直卡在这里 HOT 1
- 你好,为什么初次登陆不行呢?
- 大神,为什么登陆不了呢
- 大神,接口不能用了吗
- is:issue is:open 大佬 页面填充不满 右边有空出来的
- npm run dev error
- 大佬你好,代理是不是出什么问题了 HOT 2
- 1
- 问下各位小伙伴 这个项目api接口返回的数据存储在哪里
- 大佬,接口用不了了 HOT 1
- 用户列表会显示注册电话号
- 我运行本地的后端node+MongoDB已经开启,登录时,出现登录管理员失败 HOT 1
- 这个后台管理系统 在微软浏览器缩小的时候展开左侧导航栏会出现溢出的情况
- 求助,,install失败,proxy问题?
- 根据作者的代码用vue3参照antd pro和iview pro页面风格重新做了一个
- npm run local (访问本地后台系统,需运行node-elm后台系统) HOT 2
- 大佬,登录界面进不去,接口停止了吗 HOT 1
- 请问我这个依赖下不下来是什么问题呀,在网上查了大半天都没解决,真心求助!!!
- 请问下,在没有登录的情况下,直接通过在url中输入路由可以跳过登录界面,这个问题有对应的解决办法吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue2-manage.