Hi!
Please i'm using webapp2 on google app engine
I encountered a problem
Sorry my english is not good
I'm working about an application where user can upoad a file and then the application analysis it
For exemple, the file is a sequence of DNA
The application will count the number of nucleotids
How can i do?
this is my code:
import webapp2
import cgi
class BioAnalyse(webapp2.RequestHandler):
def get(self):
self.response.write("""<div id="contenu">
<form action="/" method="post" enctype="multipart/form-data">
<input type="file" name="fichier"/>
<input type="submit" value="Lancez l'analyse"/>
</form>
</div>"""
def post(self):
file = cgi.FieldStorage()
fileitem = file["fichier"]
# what can i do for open this file
# and analyse it?