= async (formData) => {
                try {
                    const response = await fetch('/education/instructor_dashboard/create-or-update-course/', {
                        method: 'POST',
                        headers: {
                            'X-CSRFToken': '{{ csrf_token }}'
                        },
                        body: formData,
                    });

                    const result = await response.json();
                    if (!result.success) {
                        a