Skip to content

KhanhNguyen9872/temp_upload_php7

Repository files navigation

temp_upload_php7

Web temp file upload look like temp.sh/transfer.sh using PHP7, HTML on Linux and Windows

README

README0

DEMO

Temp Upload

Required

  • Linux (Ubuntu, Debian, Kali Linux,...) or Windows (XAMPP, AppServ,...)
  • Apache2
  • PHP7 or up

Upload using cURL

curl --form "file=@<file-name>" <your-url>

Example:

curl --form "file=@music.mp3" https://temp.run.goorm.io

Download using cURL

curl <url-download> --output <file-name>

Example:

curl http://temp.run.goorm.io/file/ILUGBijN0nQAPSF4TO8z/ --output music.mp3

Installation for Linux

  1. Install dependent
sudo apt update -y
sudo apt install php apache2 git -y
  1. Export apache2 path html
export path_install="/var/www/html"
  1. Remove original html
sudo rm -rf ${path_install}
  1. Clone this repo to /var/www/html
sudo git clone https://github.com/KhanhNguyen9872/temp_upload_php7.git ${path_install}
  1. Grant all permission in /var/www/html
sudo chmod 777 ${path_install} -R
  1. Setup Apache2 and PHP config
cd ${path_install}; sudo bash setup.sh
  1. Start Apache2
sudo service apache2 start
  1. Enjoy on your web!

Installation for Windows

  1. Download this repo here
  2. Download and install Web Server Program (XAMPP, AppServ,...)
  3. Extract it and move all file to your website folder
  4. Run setup-windows.bat and do with this tutorial
  5. Start your server and enjoy

About

A sample web temp upload look like temp.sh/transfer.sh using PHP7 on Linux and Windows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published