base64Key })
            });

            const result = await response.json();

            if (response.ok) {
                // Update description and timestamp
                descriptionTextarea.value = result.newDescription || '';
                timestampElement.textContent = `时间戳: ${result.newTimestamp || 'N/A'}`;

                // Update the mediaCacheData in memory as well
                if (mediaCacheData[base64Key]) {
                    mediaCacheData[base64Key].description