fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Django 2.0
[redakcja.git]
/
src
/
fileupload
/
views.py
diff --git
a/src/fileupload/views.py
b/src/fileupload/views.py
index
3e6b999
..
eb7959c
100644
(file)
--- a/
src/fileupload/views.py
+++ b/
src/fileupload/views.py
@@
-129,7
+129,7
@@
class UploadView(FormView):
os.makedirs(path)
data = []
for f in flist:
- with open(self.get_safe_path(f.name), 'w') as destination:
+ with open(self.get_safe_path(f.name), 'w
b
') as destination:
for chunk in f.chunks():
destination.write(chunk)
data.append({