Merge branch 'dev' of https://github.com/jh8579/fileshell_cloudcomputing into dev
# Conflicts: # fileshell/models.py # fileshell/settings.py # fileshell/urls.py # fileshell/views.py # templates/base.html
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -144,7 +144,7 @@ def upload(request): | ... | @@ -144,7 +144,7 @@ def upload(request): |
144 | if request.method == 'POST': | 144 | if request.method == 'POST': |
145 | 145 | ||
146 | ## 파일 model 변수 초기화 | 146 | ## 파일 model 변수 초기화 |
147 | - filedata = request.FILES['source-file'] | 147 | + filedata = request.FILES.get('source-file') |
148 | title = request.FILES.get('source-file') | 148 | title = request.FILES.get('source-file') |
149 | user = request.user | 149 | user = request.user |
150 | user_name = request.user.username | 150 | user_name = request.user.username | ... | ... |
-
Please register or login to post a comment