How to activate randomized filenames in powermail

丶灬走出姿态 提交于 2020-01-06 05:34:06

问题


i have a form where user could upload files. There are 3 files they could upload and each of them need to have an unique name. So even the person upload the same file everytime i neet different names for it in the email, i get from the form.

So i try to use randomizeFileName. https://github.com/einpraegsam/powermail/blob/develop/Configuration/TypoScript/Main/setup.txt#L538

Cause i dont have the randomizeFilename in my constants.txt it try to enter it in my setup.txt with a real value.

# File upload settings
file {
  folder = {$plugin.tx_powermail.settings.misc.uploadFolder}
  size = {$plugin.tx_powermail.settings.misc.uploadSize}
  extension = {$plugin.tx_powermail.settings.misc.uploadFileExtensions}
  randomizeFileName = 1
}

But sadly that dont work. The file issues-1.pdf still has the same name (+ a suffix cause i tried it a lot time )

I hope someone can help me. Thank you very much!


回答1:


Based on the setup file included in the extension, the correct syntax for Powermail 5.x would be:

plugin.tx_powermail.settings.misc.file.randomizeFileName = 1

In your screenshots posted above the file part is missing.



来源:https://stackoverflow.com/questions/48340803/how-to-activate-randomized-filenames-in-powermail

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!