damianz5 / simple-file-server
Simple file server with file upload using API.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
pkg:composer/damianz5/simple-file-server
Requires
- php: >=8.0
 - ext-ctype: *
 - ext-iconv: *
 - sensio/framework-extra-bundle: ^6.2
 - symfony/console: 5.3.*
 - symfony/dotenv: 5.3.*
 - symfony/flex: ^1.3.1
 - symfony/framework-bundle: 5.3.*
 - symfony/mime: 5.3.*
 - symfony/runtime: 5.3.*
 - symfony/yaml: 5.3.*
 
Requires (Dev)
- ext-fileinfo: *
 - phpunit/phpunit: ^9.5
 - symfony/browser-kit: 5.3.*
 - symfony/css-selector: 5.3.*
 - symfony/maker-bundle: ^1.34
 - symfony/phpunit-bridge: 5.3.*
 - symfony/process: 5.3.*
 
Conflicts
Replaces
This package is not auto-updated.
Last update: 2025-11-01 01:10:42 UTC
README
Installation
composer create-project damianz5/simple-file-server
Test run
symfony server:start --port 8083 --no-tls
simple vanilla php client:
php example/simpleClient.php
should return (container name will be different)
response: {"status":"ok","collection_name":"5985f402600fd3d864de043a44f31b5f","files":["data\/container-5985f402600fd3d864de043a44f31b5f\/9cf3a175-test1.png"]}
Buzz Client (requires kriswallsmith/buzz):
in progress
add new files to new collection:
curl -H 'AUTHKEY:supersecretcode1@' \
-F "image=@screenshot.png" -F "xx=@content.html" \
http://127.0.0.1:8083/api/upload
add new files to existing collection:
curl -H 'AUTHKEY:supersecretcode1@' \
-F "image=@screenshot.png" -F "xx=@content.html" \
http://127.0.0.1:8083/api/upload/ddf59d090e70094429414935c5ea53a1
list files:
curl -H 'AUTHKEY:supersecretcode1@' \
http://127.0.0.1:8083/api/list/ddf59d090e70094429414935c5ea53a1
using https://httpie.org/
http GET http://127.0.0.1:8083/api/list/beefbeefbeefbeefbeefbeefbeefbeef AUTHKEY:supersecretcode1@
IMPORTANT
- change credentials keys in 
app/config/parameters.yml - check 
upload_max_filesizeandpost_max_sizein yourphp.ini 
TODO
- add 
moretests - invalid uploaded files should return more information