[Fixed]-Django email attach method is not taking parameters right

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)

Leave a comment