Shorter media filenames

merge-requests/30/head
Bob Mottram 2021-09-26 15:10:59 +01:00
parent b9c9665f64
commit 4e5ea68dad
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ def postMessageToOutbox(session, translate: {},
# generate a path for the uploaded image # generate a path for the uploaded image
mPath = getMediaPath() mPath = getMediaPath()
mediaPath = mPath + '/' + \ mediaPath = mPath + '/' + \
createPassword(32) + '.' + fileExtension createPassword(16) + '.' + fileExtension
createMediaDirs(baseDir, mPath) createMediaDirs(baseDir, mPath)
mediaFilename = baseDir + '/' + mediaPath mediaFilename = baseDir + '/' + mediaPath
# move the uploaded image to its new path # move the uploaded image to its new path