Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File upload working, but not with e-mail copy #5

Closed
wouterter opened this issue Sep 9, 2010 · 1 comment
Closed

File upload working, but not with e-mail copy #5

wouterter opened this issue Sep 9, 2010 · 1 comment

Comments

@wouterter
Copy link

If I don't specify e-mail addresses to copy the form entry to, then file upload works without problem. But if you do, then the form entry and file are saved, but sending the e-mail copies will throw the following:

File "/home/www/test.artis.nl/django/django-forms-builder/forms_builder/forms/views.py", line 45, in form_detail
f.seek(0)

ValueError: I/O operation on closed file

Can you validate this error?

@stephenmcd
Copy link
Owner

Unfortunately I can't replicate this issue and it works fine for me - emails are sent with files attached. It seems as though on your setup that the files are being closed (or haven't even been opened?) and that you'll somehow need to open them rather than calling seek() - if you can put together a patch for this I'll commit it to the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants