Add more types

This commit is contained in:
Joey Yakimowich-Payne 2026-01-23 14:24:06 -07:00
commit cac058b643
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
2 changed files with 5 additions and 2 deletions

View file

@ -216,7 +216,7 @@ export const Landing: React.FC<LandingProps> = ({ onGenerate, onCreateManual, on
e.preventDefault();
setIsDragging(false);
if (e.dataTransfer.files && e.dataTransfer.files.length > 0) {
const acceptedTypes = ['.pdf', '.txt', '.md', '.docx', '.pptx', '.xlsx', '.odt', '.odp', '.ods', '.rtf', '.jpg', '.jpeg', '.png', '.gif', '.webp'];
const acceptedTypes = ['.pdf', '.txt', '.md', '.doc', '.docx', '.ppt', '.pptx', '.xls', '.xlsx', '.odt', '.odp', '.ods', '.rtf', '.jpg', '.jpeg', '.png', '.gif', '.webp'];
const newFiles = Array.from(e.dataTransfer.files).filter((file: File) => {
const fileExtension = '.' + file.name.split('.').pop()?.toLowerCase();
return acceptedTypes.includes(fileExtension) || file.type.startsWith('image/');
@ -479,7 +479,7 @@ export const Landing: React.FC<LandingProps> = ({ onGenerate, onCreateManual, on
multiple
className="hidden"
onChange={handleFileSelect}
accept=".pdf,.txt,.md,.csv,.html,.htm,.xml,.json,.js,.ts,.jsx,.tsx,.py,.java,.c,.cpp,.h,.hpp,.css,.yaml,.yml,.docx,.pptx,.xlsx,.odt,.odp,.ods,.rtf,.jpg,.jpeg,.png,.gif,.webp"
accept=".pdf,.txt,.md,.csv,.html,.htm,.xml,.json,.js,.ts,.jsx,.tsx,.py,.java,.c,.cpp,.h,.hpp,.css,.yaml,.yml,.doc,.docx,.ppt,.pptx,.xls,.xlsx,.odt,.odp,.ods,.rtf,.jpg,.jpeg,.png,.gif,.webp"
/>
<div className="space-y-2">