Skip to content

Commit

Permalink
Added debug logging for video selection
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-codegen[bot] authored Aug 22, 2023
1 parent f56665e commit 3f3f300
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/VideoUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { useState } from 'react';
export default function VideoUpload() {
const [selectedVideo, setSelectedVideo] = useState(null);

const handleVideoChange = (e) => {
const handleVideoChange = (e) => {
setSelectedVideo(e.target.files[0]);
console.log(`Selected video: ${e.target.files[0].name}. Type: ${e.target.files[0].type}`);
};


return (
<div>
<input type="file" accept="video/*" onChange={handleVideoChange} />
Expand Down

0 comments on commit 3f3f300

Please sign in to comment.