I completely forgot about that. However, my problem still persists cause I am not using Models.FileField but Forms.FileField.
Your solution will work for models but I am using forms and I m not sure if instance of form has similar method such as get_FOO_filename. Sorry i wasnt really clear before and I hope someone here can help me again. Thanks Ronald Alex Koshelev wrote: > Read the docs: > http://www.djangoproject.com/documentation/db-api/#get-foo-filename > > On 10 сент, 11:19, Ronald <[EMAIL PROTECTED]> wrote: > > Hi there, > > > > I need a little bit of help here. > > > > I want to let user to import a csv file which will be parsed into the > > database. > > I am thinking of using FileField to let the user choose the file (with > > the browse button) but I am having some difficulty parsing it. > > > > I was thinking of using csv library from python to do the parsing but > > to use that library I would need to get the full pathname of the files > > while FileField only gives the name of the file and the content of the > > file. > > > > I tried using CharField(widget = forms.FileInput) but it gives exactly > > the same results. > > > > Seems like I could not get the full pathname of the file no matter > > what. > > > > Perhaps Im missing something here and hopefully someone can point me > > out cause I dont want to do the low level processing myself to parse > > those csv files directly (without using csv library) > > > > Thanks > > > > Ronald --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---