Hi all, I am trying to write a simple app that allows a user to select a file (via the browse button) from which data can be read in and parsed. I have read several examples but none seem to do exactly what I want. I have built a form and so am trying to use forms.FileField(). I can add this field no problem to my form. However I am not sure I understand how I am supposed to pull the data contained within the file from within my views. I tried:
.... file = forms.FileField() .... if request.FILES: filename = request.FILES['file'] ... However I cant seem to get this to work. Does anyone have any good tutorials or can offer any suggestions? Many 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 -~----------~----~----~----~------~----~------~--~---