mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-05 04:02:21 +00:00
Remove any existing etag for uploaded images
This commit is contained in:
1 parent
05540280d8
commit
85bb69ec66
1 file changed
+6
@@ -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 +
|
||||
|
||||
Reference in new issue
Block a user