temp_upload_php7
Web temp file upload look like temp.sh/transfer.sh using PHP7, HTML on Linux and Windows
DEMO
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
- Install dependent
sudo apt update -y
sudo apt install php apache2 git -y
- Export apache2 path html
export path_install="/var/www/html"
- Remove original html
sudo rm -rf ${path_install}
- Clone this repo to /var/www/html
sudo git clone https://github.com/KhanhNguyen9872/temp_upload_php7.git ${path_install}
- Grant all permission in /var/www/html
sudo chmod 777 ${path_install} -R
- Setup Apache2 and PHP config
cd ${path_install}; sudo bash setup.sh
- Start Apache2
sudo service apache2 start
- Enjoy on your web!
Installation for Windows
- Download this repo here
- Download and install Web Server Program (XAMPP, AppServ,...)
- Extract it and move all file to your website folder
- Run setup-windows.bat and do with this tutorial
- Start your server and enjoy