Hello

I am trying different approaches to upload and manipulate csv file before 
insert it into DB
I do not need to save the file but If I can open it with csv DictReader 
that would be awesome.

Any suggestions on how to  achieve it. 

I am trying with SQLFORM.factory

uploadCanonForm=SQLFORM.factory(Field('fileCanon', 
'upload',uploadfolder=os.path.join(request.folder,'uploads')),
                                table_name='canonUpload')


I know how to get the file content but it is stored in a list. Any better 
way to manipulate it since I also have to skip some lines of the file 

Any suggestions?

Thank you



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to