A clean coded simple file/image uploader builded with express

Overview

Before you start...

This code is nodejs version of source that my friend GDLev.

He is open source creator such as I, you can discover his work by clicking there: Click!

He also created a good frontend that is fully compitable with my code: uploadpopup

All my codes can be used for free in non commercial usage. If you want to support me just click star button and don't delete author info from code

Setup

Before we start to cofigurating uploader make sure that you have registered domain & vm to host uploader.

Required things:

NodeJS 16.x.x + | https://nodejs.org/
Express         | npm i express
ejs             | npm i ejs
formidable v2   | npm i formidable

Config:

// Cofiguration
const port = 80;
const dir = 'files';
const tokens = '12345'
const domain = 'example.com'

embedSupport = false
res.render('embed', {
    imglink: `https://${domain}/${image}`,
    file: req.params.filename + ` | ${image}`,
    // Config
    title: `Simple Uploader`,
    description: `created by kameHame HA`,
    color: `#ffffff`
})

Find this code in app.js.

  • port - web app server port
  • dir - folder where you want to store uploaded files
  • tokens - special token to make sure that only you have access to uploader
  • domain - name of domain you will be using for uploader
  • title - embed title
  • description - embed description
  • color - embed color

Configure this how you want 🙂

Sharex custom uploader:

Open sharex main window, goto: Destinations -> Custom uploader settings, click New. Next copy those settings:

Then change Image uploader & File uploader to your new custom uploader

Web uploader

Goto: <YOUR_DOMAIN>/, choose file & provide valid token, click Upload and have fun!

Access uploaded file by typing <YOUR_DOMAIN>/<FILE_NAME>

You might also like...

This is a simple file uploading system made up using node & express

FileUploader A simple file-upload application made using Node.js and Express. Local Setup Install the Dependencies Using npm npm install Usage Starti

Nov 2, 2022

🖼 Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well with or without a framework.

🖼 Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well with or without a framework.

file-upload-with-preview 🖼 Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well

Dec 26, 2022

An express-ve way to start an express project

Express-ve express starter An express-ve way to start an express project. Checkout a demo project here or Learn how to use express-ve here Are you sta

Mar 28, 2022

Remarkable is a simple extension that automatically keeps your bookmarks clean & up-to-date.

Remarkable is a simple extension that automatically keeps your bookmarks clean & up-to-date.

Remarkable Remarkable is a simple extension that automatically keeps your bookmarks clean & up-to-date. Installation (Other browsers coming soon - sor

Dec 21, 2022

A simple, lightweight, clean and small library for creating guided product tours for your web app.

A simple, lightweight, clean and small library for creating guided product tours for your web app.

Tourguide.js Simple, lightweight library for creating guided tours for your web, apps and more. A tour guide is a person who provides assistance, info

Dec 12, 2022

Essential Audio Player JS is a simple, clean and minimal JavaScript / HTML5 / CSS web audio player.

Essential Audio Player JS is a simple, clean and minimal JavaScript / HTML5 / CSS web audio player.

Essential Audio Player JS is a simple, clean and minimal JavaScript / HTML5 / CSS web audio player. No unnecessary controls, just a button and a track

Dec 14, 2022

jSide Menu is a well designed, simple and clean side navigation menu with dropdowns.

jSide Menu is a well designed, simple and clean side navigation menu with dropdowns.

jQuery jSide Menu jSide Menu is a well designed, simple and clean side navigation menu with dropdowns. Browse: Live Demo & Using Guide Main Features F

Feb 14, 2022

🖼️ Image proxy for Next.js. Makes it possible to use dynamic domains in next/image component.

Next.js Image Proxy Image proxy for Next.js. Makes it possible to use dynamic domains in next/image component. ❔ Motivation This library makes it poss

Dec 1, 2022

A Javascript library that discourages and prevents image theft/download by preventing client ability to retrieve the image.

ProtectImage.js ProtectImage.js is a Javascript library that helps prevent image theft by disabling traditional user interactions to download/copy ima

Aug 18, 2022
Owner
kameHame HA
kameHame HA
iframe and html5 file uploader

Upload iframe and html5 uploader. ⇪ 演示 查看演示,你需要 clone 一份代码: $ git clone git://github.com/aralejs/upload $ cd upload $ npm install $ spm install $ node

aralejs 85 Apr 7, 2022
optimize image & upload file to cloud as image bed with tiny image automic.

Rush! 图片压缩 & 直传图床工具 这是一个兴趣使然的项目, 希望 Rush! 能让这个世界的网络资源浪费减少一点点 下载 Downloads 获取最新发行版 功能 Features 拖拽批量压缩图片, 支持格式 jpg/png/gif Drop to optimize, jpg/png/gif

{ Chao } 3 Nov 12, 2022
Personal project to a student schedule classes according his course level. Using GraphQL, Clean Code e Clean Architecture.

classes-scheduler-graphql This is a personal project for student scheduling, with classes according his course level. I intend to make just the backen

Giovanny Lucas 6 Jul 9, 2022
Backend Stack of Project #18 from Driven Fullstack Bootcamp, coded in TypeScript

SISTEMA VALEX Introdução O projeto consiste em um serviço de emissão de cartões (vales) para empresas. O sistema permite as seguintes funcionalidades

Guilherme de Oliveira 6 Sep 6, 2022
Simple REST API using Express with TypeScript, PostgreSQL, and MySQL to practice the Clean Architecture by Uncle Bob.

Clean-Architecture Simple REST API using Express with TypeScript, PostgreSQL, and MySQL to practice the Clean Architecture by Uncle Bob. About This RE

Abdullah Adel 10 Oct 16, 2022
A quickstart AWS Lambda function code generator. Downloads a template function code file, test harness file, sample SAM deffiniation and appropriate file structure.

Welcome to function-stencil ?? A quickstart AWS Lambda function code generator. Downloads a template function code file, test harness file, sample SAM

Ben Smith 21 Jun 20, 2022
Serve file server with single zip file as file system in Deno.

zipland Serve file server with one-single zip file in Deno. Support zip just zip32 with deflated or uncompressed serving plaintext deflate Examples Yo

Yongwook Choi 18 Nov 2, 2022
Feel free to create new file, don't hesitate to pull your code, the most important thing is that the file name here must match your nickname so that file does not conflict with other people.

Hacktoberfest Indonesia Apa Itu Hacktoberfest ? Hacktoberfest adalah acara tahunan yang bertujuan untuk mendorong berkontribusi kedalam ekosistem open

Juan Daniel 5 Dec 15, 2022
Simple JavaScript Library to add parallax image to background-image

Backpax Simple JavaScript Library to add parallax image to background-image Install $ npm install backpax --save Demo Demo page is here Usage If you

appleple 13 Oct 12, 2022