Remove any existing etag for uploaded images

main
Bob Mottram 2020-05-31 16:55:00 +01:00
parent 05540280d8
commit 85bb69ec66
1 changed files with 6 additions and 0 deletions

View File

@ -5504,6 +5504,12 @@ class PubServer(BaseHTTPRequestHandler):
if self.server.debug:
print('DEBUG: POST ' + mType +
' media removing metadata')
# remove existing etag
if os.path.isfile(postImageFilename + '.etag'):
try:
os.remove(postImageFilename + '.etag')
except BaseException:
pass
removeMetaData(filename, postImageFilename)
if os.path.isfile(postImageFilename):
print('profile update POST ' + mType +