frappe / frappe/frappe-react-sdk
Why not attaching file in field name as specified
- Dominant language
- TypeScript
- Stars
- 189
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
const { upload, error: checkUploadError, loading: checkUpload, progress, isCompleted } = useFrappeFileUpload();
const handleAudioUpload = async () => {
if (!selectedAudioFile) return;
try {
const res = upload(selectedAudioFile,{isPrivate: false,doctype: 'Doctype',docname: docname,fieldname: 'audio_upload_task'})
console.log('Upload result:', res);
setShowAudioModal(false);
setSelectedAudioFile(null);
alert('Audio uploaded successfully!');
} catch (error) {
console.error('Audio upload error:', error);
}
};
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.