csv upload limit

24 views
Skip to first unread message

Yebach

unread,
Jul 26, 2015, 9:47:47 AM7/26/15
to web2py-users
Hello

How can i limit the number of rows user can upload trough .import_from_csv_file(request.vars.csvfile.file, delimiter=";")

i tried with counting rows and setting limit but this way the records are not imported even if they are below the limit number

any suggestions?

Thank you

Derek

unread,
Jul 28, 2015, 4:22:00 PM7/28/15
to web2py-users, vid....@gmail.com
There's no way. You could modify the 'base.py' of pydal to add it... It looks like it will stop on a line if the whole line is this:
END
Reply all
Reply to author
Forward
0 new messages