####1. 限制必须登录后才能上传; 两处代码更改。 第一处在客户端部分,改变resumable的fileAdded触发事件代码
#insert fallowing code under sample.coffee line 84
if !Meteor.userId()
alert('please login first!');
return false;
#!/bin/false | |
# This file will be sourced in init.sh | |
# Namespace functions with provisioning_ | |
# https://raw.githubusercontent.com/ai-dock/stable-diffusion-webui/main/config/provisioning/default.sh | |
### Edit the following arrays to suit your workflow | |
DISK_GB_REQUIRED=30 |
#!/bin/bash | |
apt-get remove -y docker docker-engine docker.io containerd runc | |
apt-get update | |
apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common |
app.post('/uploadFile',function (req,res) { | |
// create an incoming form object | |
var form = new formidable.IncomingForm(); | |
// specify that we want to allow the user to upload single files in a single request | |
form.multiples = false; | |
//keep the file upload extensions | |
form.keepExtensions = true; | |
// 500M limit | |
form.maxFieldsSize = 500 * 1024 * 1024; | |
// store all uploads in the /uploads directory |
set nocompatible " be iMproved, required | |
filetype off " required | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
" complection support js tern used by omni completion |
// Copyright © 2015 Daniel Porrey | |
// | |
// This file is part of the DHT11 Temperature Sensor project | |
// on hackster.io (based on the code posted by Posted by Rahul Kar | |
// found at http://www.rpiblog.com/2012/11/interfacing-temperature-and-humidity.html) | |
// | |
// Dht11_Speed.c is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. |
{ | |
"1": "united states", | |
"7": "kazakhstan", | |
"20": "egypt", | |
"27": "south africa", | |
"30": "greece", | |
"31": "netherlands", | |
"32": "belgium", | |
"33": "france", | |
"34": "spain", |
var fs = Npm.require('fs'); | |
var path = Npm.require('path'); | |
var archiver = Npm.require('archiver'); | |
var req = this.request; | |
var res = this.response; | |
//create archiver class | |
var zip_name; //must with .zip ext. for example xxx.zip | |
var archive = archiver('zip', { |
####1. 限制必须登录后才能上传; 两处代码更改。 第一处在客户端部分,改变resumable的fileAdded触发事件代码
#insert fallowing code under sample.coffee line 84
if !Meteor.userId()
alert('please login first!');
return false;
_____ _____ _______ | |
|_ _| / ____| |__ __| | |
| | | | | | | |
| | | | | | | |
_| |_ | |____ | | | |
|_____| \_____| |_| | |
__________ |
.center{ | |
margin:0 auto; | |
display:block; | |
} | |
.width-wide{ | |
width:1200px; | |
} | |
.right{ |