如何在sails.js中提供大量图像?假设我的API服务器有一个用户控制器,用于上传图像,并存储在服务器中每个用户的文件夹中。upload({ // set custom upload dir path name
dirname: require('path').resolve(sails.config.app
我有一个客户端应用程序注册表单,用于将数据发送到基于sails.js的服务器。除了正在发送的基本数据之外,我还有一个将图像上传到./tmp/uploads的图像上传upload: function (req, res) {
req.file('avatar').upload({ dirNamereturn re
我尝试从Sails.js 0.12应用程序的资产文件夹中的数据文件夹下载上传的文件。sailsjs send a file on the fly with res.attachment()、How do I authenticate access to assets folder in sails.js、Uploading multiple files with Sails.js 0.10 and