Skip to content

[WIP] Adapt video submission form for YouTube upload#52

Draft
Copilot wants to merge 1 commit into
masterfrom
copilot/adapt-video-submit-form
Draft

[WIP] Adapt video submission form for YouTube upload#52
Copilot wants to merge 1 commit into
masterfrom
copilot/adapt-video-submit-form

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 23, 2026

L’agent cloud a commencé à travailler sur peut tu adapter le f... et mettra à jour cette demande de tirage au fur et à mesure de l’avancement du travail.

Original prompt

peut tu adapter le formulaire de soumission de video a ça : async function uploadToYoutube({ file, title, description, privacyStatus = "unlisted" }) {
const token = localStorage.getItem("token");
const form = new FormData();
form.append("video", file);
form.append("title", title);
form.append("description", description || "");
form.append("privacyStatus", privacyStatus);

const res = await fetch("http://localhost:3000/api/upload/youtube", {
method: "POST",
headers: {
Authorization: Bearer ${token}
},
body: form
});

const data = await res.json();
if (!res.ok) throw new Error(data.error || data.message || "Upload failed");
return data.youtube; // { videoId, youtubeUrl, privacyStatus, title }
}

The user has attached the following file paths as relevant context:

  • src\pages\Personal_information\index.jsx

Créé depuis VS Code.


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants