我使用Twitter引导程序并尝试将导航栏的文本对齐,即 - "品牌"将出现在右侧,而其他所有内容都出现在右侧.(从右到左的网站).
有什么想法可以实现吗?
我正在尝试使用 Multer 上传多个图像。除了只上传一个文件(选择的最后一个文件)外,一切都按预期工作。
HTML
<form class='new-project' action='/projects' method='POST' enctype="multipart/form-data">
<label for='file'>Select your image:</label>
<input type='file' multiple='multiple' accept='image/*' name='uploadedImages' id='file' />
<span class='hint'>Supported files: jpg, jpeg, png.</span>
<button type='submit'>upload</button>
</form>
Run Code Online (Sandbox Code Playgroud)
JS
//Define where project photos will be stored
var storage = multer.diskStorage({
destination: function (request, file, callback) {
callback(null, './public/uploads');
},
filename: function (request, file, callback) {
console.log(file);
callback(null, file.originalname)
}
});
// Function to upload project images
var upload = multer({storage: storage}).any('uploadedImages');
// add new photos to the DB
app.post('/projects', …Run Code Online (Sandbox Code Playgroud)