forked from indymedia/epicyon
Remove any existing etag for uploaded images
parent
05540280d8
commit
85bb69ec66
|
@ -5504,6 +5504,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
print('DEBUG: POST ' + mType +
|
print('DEBUG: POST ' + mType +
|
||||||
' media removing metadata')
|
' media removing metadata')
|
||||||
|
# remove existing etag
|
||||||
|
if os.path.isfile(postImageFilename + '.etag'):
|
||||||
|
try:
|
||||||
|
os.remove(postImageFilename + '.etag')
|
||||||
|
except BaseException:
|
||||||
|
pass
|
||||||
removeMetaData(filename, postImageFilename)
|
removeMetaData(filename, postImageFilename)
|
||||||
if os.path.isfile(postImageFilename):
|
if os.path.isfile(postImageFilename):
|
||||||
print('profile update POST ' + mType +
|
print('profile update POST ' + mType +
|
||||||
|
|
Loading…
Reference in New Issue