Skip to content

Commit 5110ad8

Browse files
committed
Remove path information added by IE6 to filenames.
Remove .pyc file.
1 parent 08085ce commit 5110ad8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

gae/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def handle_upload(self):
7070
if type(fieldStorage) is unicode:
7171
continue
7272
result = {}
73-
result['name'] = fieldStorage.filename
73+
result['name'] = re.sub(r'^.*\\', '',
74+
fieldStorage.filename)
7475
result['type'] = fieldStorage.type
7576
result['size'] = self.get_file_size(fieldStorage.file)
7677
if self.validate(result):

gae/main.pyc

-5.76 KB
Binary file not shown.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h1>jQuery File Upload Demo</h1>
6464
</span>
6565
</div>
6666
<div id="fileupload">
67-
<form action="php/index.php" method="POST" enctype="multipart/form-data">
67+
<form action="http://localhost:8086/" method="POST" enctype="multipart/form-data">
6868
<div class="fileupload-buttonbar">
6969
<label class="fileinput-button">
7070
<span>Add files...</span>

0 commit comments

Comments
 (0)