Skip to content
Browse files

Clarified the reasoning in a comment.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 9aa81c5 commit 78dfdd5648d0fc6060e03a2edbe738779d132684 @malcolmt malcolmt committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/http/
4 django/http/
@@ -84,7 +84,9 @@ def parse_file_upload(header_dict, post_data):
if not name_dict['filename'].strip():
# IE submits the full path, so trim everything but the basename.
- # (We can't use os.path.basename because it expects Linux paths.)
+ # (We can't use os.path.basename because that uses the server's
+ # directory separator, which may not be the same as the
+ # client's one.)
filename = name_dict['filename'][name_dict['filename'].rfind("\\")+1:]
FILES.appendlist(name_dict['name'], {
'filename': filename,

0 comments on commit 78dfdd5

Please sign in to comment.
Something went wrong with that request. Please try again.