The save_file_safely function may add a UUID suffix to the filename if there's a collision, but the preview URL was being constructed using the original filename instead of the actual saved filename. Now uses saved_preview_path.name.