i don't know the answer, but i would go about finding the answer by: - creating a form that lets me upload the file to web2py (see the book for examples) - run it in a browser while using tools that track the request sent to the server with the file (chrome has this built in with the network tab of the developer toolbar, or httpfox on FF, or charles) - figure out how to send the right headers and data to the server from cURL.
there may be a better way to glean this info, but that is the steps i'd take.