File Upload in Perspective CSV to database

Or use the builtin StringIO, as in this thread dealing with the exact same issue: