Change Name of uploaded files in powermail formula

2019-08-21 09:20发布

i hope someone could help me with my question.

I have on a typo3 site a form for applications. On this form you have the ability to upload different documents for curriculum vitae and certificates. This form is created with a powermail plugin.

The email, generatedfrom the form, should pass a gateway and automatically inserted into a database. And I got some problems with the files.

  1. The files should not have the same name. If a candidate load up files with the same name the gateway can not see, which one is for vitae and which for certificate.

  2. Typo3 put every file in one folder and put a suffix on it when there is already a file with that name. But this suffix is not reportet to the email. So when i got the email it says for example the file for certificate is "certificate.pdf" but the real name of the file is certificate_2.pdf

I think the best way to solve the problems is, to give the files an unique praefix. So the candidade upload a file xxx.pdf for certificate, but the form change the name to certificate_xxx.pdf before it was send.

Or the suffix would be also displayed in the email and not only in the file name.

I hope that is understandable (sorry, english is not my native) and someone could help me.

Greetings Thomas

1条回答
甜甜的少女心
2楼-- · 2019-08-21 09:54

If you try to upload two files with the same name and powermail can not handle it, this is a bug. In this case: Pls report to github!

But, powermail can randomize filenames if this is an option to you: https://github.com/einpraegsam/powermail/blob/develop/Configuration/TypoScript/Main/setup.txt#L538

查看更多
登录 后发表回答