Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmed-osama2022/share-files
For sharing files "data" between client and server.
https://github.com/ahmed-osama2022/share-files
php php7 php8 server server-side serverside-rendering
Last synced: 29 days ago
JSON representation
For sharing files "data" between client and server.
- Host: GitHub
- URL: https://github.com/ahmed-osama2022/share-files
- Owner: Ahmed-Osama2022
- Created: 2024-10-29T18:23:46.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T01:18:22.000Z (2 months ago)
- Last Synced: 2024-12-18T14:16:29.816Z (29 days ago)
- Topics: php, php7, php8, server, server-side, serverside-rendering
- Language: PHP
- Homepage:
- Size: 633 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Share-files
- Share files between client and server
- Can be used for sharing data between PC which work as a server and mobile phone## NOTE:
- composer is required in order to install the qr generator package!
### Download and install requirements
```bash
git clone https://github.com/Ahmed-Osama2022/share-files
cd share-files
composer install
```### Instructions and tips
- Make sure you updated this values in your php.ini file!
- To be able to post larger files.
```conf
post_max_size = 2G
upload_max_filesize = 2G
memory_limit = 3G
```- Make sure if you are using apache2, to edit this .conf file in:
```bash
sudo nano /etc/apache2/apache2.conf
```
- And add the following here:
- This is an example for making "apache2 server" able to handle 2.7GB body size.```conf
LimitRequestBody 2903040000
```
- Then
```bash
sudo systemctl restart apache2
```- Then make sure you updated the permission as followes If you are using apache2 server:
```bash
sudo chown -R www-data:$USER /var/www/html/share-files;
````
- If you wish to be able to edit the files later on...
```bash
sudo chmod -R g+w /var/www/html/share-files;
````### Requirements:
- Please make sure you have installed php-cli for this project in order to work
- php >= 7.4### Run:
- If you have node installed in your system, you can run using:
```bash
npm start
```
- Or using```bash
php -S 0.0.0.0:8000
```
---
- If you are using apache2 server, move teh project to "your root docs folder", and make sure you started the apache2 server.---