Coder Social home page Coder Social logo

leonirlopes / bashupload Goto Github PK

View Code? Open in Web Editor NEW

This project forked from io-technologies/bashupload

0.0 1.0 0.0 26 KB

Opensource for bashupload.com - PHP based files uploader for CLI, servers, desktops and mobiles

Home Page: https://bashupload.com/

License: GNU General Public License v3.0

JavaScript 17.77% PHP 45.58% CSS 14.23% HTML 22.41%

bashupload's Introduction

PHP/JavaScript file upload web app to upload files from command line & browser, and download them elsewhere. Frequently used to upload/download files on servers. Hosted version is available at bashupload.com.

Features

  1. Upload from command line with curl (or other CLI tools).
  2. Download from command line with wget, curl or other CLI tools.
  3. Download from browser.
  4. Upload from browser or mobile with file browser.
  5. Upload from browser with drag and drop.
  6. Automatic filesize limit based on php.ini post_max_size and upload_max_filesize settings.
  7. Files are automatically removed after specified number of days (configurable).
  8. Files are automatically removed after specified number of downloads (also configurable).

Installation

Make sure you have:

  • php 7.2+
  • Nginx 1.14+ (host config example located in the "setup" folder) or other webserver which can talk to PHP
  • "/var/files" folder available for writing/reading to a web user ("www-data" usually)
  1. Clone bashupload repo to a folder.
  2. Setup webserver and point it to web/index.php (or just use Nginx virtual host config from "setup" folder).
  3. Tune config.php to your requirements. You can optionally copy config.php to config.local.php and make changes there (the file is untracked in GIT).
  4. Add "php tasks/clean.php" to be executed every hour using cron:
0 *     * * *     root   php /path/to/bashupload/tasks/clean.php

Configuration

  • You can change config.php (or untracked config.local.php file) to tune expiration and download limits to your needs.
  • Change post_max_size and upload_max_filesize in php.ini to meet your needs on maximum upload file size.
  • If you use Nginx, don't forget to update "client_max_body_size" param as well.

bashupload's People

Contributors

denfromio avatar kevin39 avatar xsat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.