python - Upload .xls file with html input file -
i can upload .csv, , .json file following code. however, when try upload .xls files, app gets locked up. need make work correctly excel files?
class createteam(basehandler): def post(self): file = self.request.get('file') # line locks excel files
my html looks this...
<form method="post" action="/create_team" enctype="multipart/form-data"> <div> <p>upload file</p> <input type="file" name="file"> </div> </form>
i have other input fields on form posted same submit button. mime type issue. if so, how set mime type uploaded file?
Comments
Post a Comment