update views.py

add upload function