https://github.com/kyza/node-file-uploader
https://github.com/kyza/node-file-uploader
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/kyza/node-file-uploader
- Owner: Kyza
- Created: 2020-12-12T19:14:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-03T01:13:19.000Z (about 5 years ago)
- Last Synced: 2025-01-25T21:11:23.917Z (over 1 year ago)
- Language: JavaScript
- Size: 49.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node Image Uploader
## What is this?
A simple program that automatically uploads all _new_ files in a folder to a file hoster of your choice.
## Installation
### Requirements
- [NodeJS](https://nodejs.org/)
- [Git](https://git-scm.com/)
### Step 1
```bash
git clone https://github.com/KyzaGitHub/node-file-uploader
cd node-file-uploader
npm i
npm i -g .
```
The `node-file-uploader` command is now available globally.
### Step 2
Copy this example into a file called `settings.json` and adjust as needed.
```json
{
"folders": ["C:/Users/Kyza/Pictures/Snipaste"],
"url": "https://api.pxl.blue/upload/extra",
"file_form_name": "file",
"form_options": {
"key": "",
"host": "pxl_rand"
},
"url_path": "url",
"deletion_url_path": "deletionUrl",
"automatic_updating": true
}
```
### Step 3
You can now simply run `node-file-uploader` anywhere to start the program.
You can also create a command line file to run on startup.
#### Windows
```batch
node-file-uploader
```
Save the file as `whatever-you-want.cmd` (DO NOT NAME IT `node-file-uploader.cmd`) and place it in `C:\Users\[User Name]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup`.
#### macOS
You're on your own to figure out how to do this.
#### Linux
You should already know how to do this anyway.