Filename for video

merge-requests/21/head
Bob Mottram 2021-03-06 23:29:44 +00:00
parent 3e7e64f5d0
commit c6da9ce269
1 changed files with 3 additions and 1 deletions

View File

@ -12673,7 +12673,9 @@ class PubServer(BaseHTTPRequestHandler):
postImageFilename)
else:
if os.path.isfile(filename):
os.rename(filename, filename.replace('.temp', ''))
newFilename = filename.replace('.temp', '')
os.rename(filename, newFilename)
filename = newFilename
fields = \
extractTextFieldsInPOST(postBytes, boundary,