Hallo,

i have got small problem. i try to upload a pdf but i get this error
all the time.
The process can not access the file because it is being used by
another process: 'file location...'

my code is here:

pdf_file = self.cleaned_data.get('pdf_file')
      if (pdf_file.name[-3:] == u'pdf' or pdf_file.content_type in
['application/pdf', 'application/x-pdf'])):
              return self.cleaned_data
      else:
              raise forms.ValidationError(u"Die hochgeladene Datei ist
keine gültige PDF Datei.")

can someone tell me why that is and where my problem is?

huge thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to