https://github.com/tuberboy/shell-uploader
Curl/Wget/Linux Command To Upload (POST, PUT) Any File In Any PHP Hosting Server
https://github.com/tuberboy/shell-uploader
bash bash-upload bashuploader cli-uploader cmd-uploader shell-uploader shelluploader
Last synced: 2 months ago
JSON representation
Curl/Wget/Linux Command To Upload (POST, PUT) Any File In Any PHP Hosting Server
- Host: GitHub
- URL: https://github.com/tuberboy/shell-uploader
- Owner: tuberboy
- License: gpl-3.0
- Created: 2022-03-02T16:36:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-02T17:25:46.000Z (over 4 years ago)
- Last Synced: 2025-03-19T23:44:47.596Z (over 1 year ago)
- Topics: bash, bash-upload, bashuploader, cli-uploader, cmd-uploader, shell-uploader, shelluploader
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.