Text files, written on my computer in gedit, upload fine. Files saved from a colleague's machine, written in Windows and saved as '.txt' simply upload as blank. As in, file appears in the right directory, but it's empty.
I've disabled any messing with the file, so the only code that affects it looks like this: :::python
if request.method == 'POST':
form = BookForm(request.POST, request.FILES)
if form.is_valid():
newbook = Book()
newbook.owner = request.user
newbook.title = request.POST['title']
newbook.synopsis = request.POST['synopsis']
newbook.save()
newdoc = BookFile()
newdoc.document = request.FILES['docfile']
newdoc.book = newbook
newdoc.save()
I can't see anything relevant in settings.py. Not sure why this is happening.