Coder Social home page Coder Social logo

tuberboy / shell-uploader Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 19 KB

Curl/Wget/Linux Command To Upload (POST, PUT) Any File In Any PHP Hosting Server

License: GNU General Public License v3.0

PHP 100.00%
bash shell-uploader bash-upload bashuploader cli-uploader cmd-uploader shelluploader

shell-uploader's Introduction

Terminal Command-Line Uploader

I used server side php code to upload/transfer files.

Supported Command:

  • Curl
  • Wget
  • Linux
  • Any Terminal/Shell Command

Supported Request:

  • POST
  • PUT

Some PUT Curl Commands:

curl -T your-any-file.extension example.com
curl example.com -T your-any-file.extension
curl -T your-any-file.extension https://example.com/
curl https://example.com/ -T your-any-file.extension
curl --upload-file your-any-file.extension example.com
curl example.com --upload-file your-any-file.extension
curl --upload-file your-any-file.extension https://example.com/
curl https://example.com/ --upload-file your-any-file.extension
  • You can use http:// or https:// prefix or without prefix and without /.
  • I made this for transfer/upload file into my own server from terminal (NeoTerm/Termux/Any).

Add Below Code On .htaccess:

Options +MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /up/$1 [NC,L,QSA]

If you rename up.php file to another name then add that name by replacing up to that name here RewriteRule ^(.*)$ /up/$1 [NC,L,QSA]

If you want to contribute it then:

  • Add more features and pull it on here.
  • Help everyone to describe what you done (Documentations).

I will add more features if i get time, thanks.

shell-uploader's People

Contributors

tuberboy avatar

Stargazers

 avatar  avatar  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.