Filename for video

main
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) postImageFilename)
else: else:
if os.path.isfile(filename): if os.path.isfile(filename):
os.rename(filename, filename.replace('.temp', '')) newFilename = filename.replace('.temp', '')
os.rename(filename, newFilename)
filename = newFilename
fields = \ fields = \
extractTextFieldsInPOST(postBytes, boundary, extractTextFieldsInPOST(postBytes, boundary,