How harvey-kun/local-file-storage-with-php works
Storage_test is a PHP web application for uploading, browsing, managing, and previewing stored files; version 3.0 adds signed-in accounts and access controls. The principal flow is a user interacting with the file page, which sends management actions to the files endpoint, while preview requests are served separately. Earlier numbered directories preserve successive application versions. The README documents MySQL and an uploads directory; their detailed wiring is not shown in the excerpts, so those relationships are marked unverified.
Main entry points: auth.php Authentication and sharing · preview.php File preview · index.php File workspace · files.php File actions
Components 19
File application
- File workspace
3.0/index.php - File actions
3.0/files.php - MySQL data
- Uploaded files
Media handling
- File preview
3.0/preview.php - File type rules
3.0/filetypes.php - Audio metadata
3.0/audiometa.php
Accounts and access
- Authentication and sharing
3.0/auth.php - Login
3.0/login.php - Logout
3.0/logout.php
Earlier versions
- Version 1.0
1.0 - Version 1.1
1.1 - Version 2.0
2.0 - Version 2.1
2.1 - Version 2.2
2.2 - Version 2.3
2.3 - Version 2.4
2.4 - Version 2.5
2.5
Other components
- User
Connections 12
- User → File workspace: uses
- File workspace → File actions: sends actions
3.0/index.php - File workspace → Authentication and sharing: requires login
3.0/index.php - File preview → Authentication and sharing: checks access
3.0/preview.php - File preview → File type rules: classifies file
3.0/preview.php - File preview → Audio metadata: reads tags
3.0/preview.php - File preview → MySQL data: queries file record
3.0/preview.php - Authentication and sharing → MySQL data: manages account and access data
3.0/auth.php - File actions → MySQL data: uses file records
- File actions → Uploaded files: stores uploaded files
- Login → Authentication and sharing: uses account services
- Logout → Authentication and sharing: uses session services