Files
wedding-phone/rotary_phone_web.py
grabowski 7cce795a43 Add rename functionality for recordings
- Added /rename/<filename> API endpoint
  - Accepts new_name in JSON body
  - Automatically appends .wav extension if missing
  - Uses secure_filename() for safety
  - Checks for existing files to prevent overwrites
  - Backs up renamed file to USB if backup enabled

- Updated web interface (template v1.6.0)
  - Added "Rename" button to each recording
  - Added renameRecording() JavaScript function
  - Uses prompt dialog for name input
  - Pre-fills current name (without .wav extension)
  - Reloads page after successful rename

This allows users to assign guest names to recordings
for easier organization (e.g., "John_Smith.wav").

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27 13:14:58 +07:00

85 KiB