mirror of https://gitlab.com/bashrc2/epicyon
Shorter media filenames
parent
b9c9665f64
commit
4e5ea68dad
|
@ -329,7 +329,7 @@ def postMessageToOutbox(session, translate: {},
|
|||
# generate a path for the uploaded image
|
||||
mPath = getMediaPath()
|
||||
mediaPath = mPath + '/' + \
|
||||
createPassword(32) + '.' + fileExtension
|
||||
createPassword(16) + '.' + fileExtension
|
||||
createMediaDirs(baseDir, mPath)
|
||||
mediaFilename = baseDir + '/' + mediaPath
|
||||
# move the uploaded image to its new path
|
||||
|
|
Loading…
Reference in New Issue