1
I think it needs a content type, maybe try something more like this
uploaded_file = form.cleaned_data.get('stl_file', '')
email.attach(uploaded_file.name, uploaded_file.read(), uploaded_file.content_type)
Source:stackexchange.com
1
I think it needs a content type, maybe try something more like this
uploaded_file = form.cleaned_data.get('stl_file', '')
email.attach(uploaded_file.name, uploaded_file.read(), uploaded_file.content_type)