Skip to content

Commit

Permalink
Clarified the reasoning in a comment.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5873 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Aug 12, 2007
1 parent 9aa81c5 commit 78dfdd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion django/http/__init__.py
Expand Up @@ -84,7 +84,9 @@ def parse_file_upload(header_dict, post_data):
if not name_dict['filename'].strip():
continue
# 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,
Expand Down

0 comments on commit 78dfdd5

Please sign in to comment.