I'm trying to validate an uploaded csv file, so I want to read the
first line of text and if it's not the right format, send an error
message. Unfortunately, neither InMemoryUploadedFile nor
TemporaryUploadedFile have the readline() method.

Was that an oversight (in which case I'll create a two-line patch and
submit it--both StringIO and temp files support the method) or a
design decision with a good reason?

Thanks,
Todd

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

Reply via email to