在typo3上的Powermail Formular中更改上载文件的名称 [英] Change Name of uploaded files in powermail formular on typo3

查看:136
本文介绍了在typo3上的Powermail Formular中更改上载文件的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人可以帮助我解决我的问题.

i hope someone could help me with my question.

我在typo3网站上有一份申请表.在此表格上,您可以上传不同的履历和证书文件. 此表单是使用Powermail插件创建的.

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. 文件名不能相同.如果候选人用相同的名字加载文件,网关将看不到,哪个是简历,哪个是证书.

  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.

Typo3将每个文件放在一个文件夹中,并在已存在具有该名称的文件的情况下在其上添加后缀.但是,此后缀不是电子邮件的举报人.因此,当我收到电子邮件时,例如说证书的文件是"certificate.pdf",但文件的真实名称是certificate_2.pdf

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

我认为解决问题的最佳方法是为文件提供唯一的praefix.因此候选人必须上载用于证书的文件xxx.pdf,但是在发送之前,该表格将名称更改为certificate_xxx.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.

问候 托马斯

推荐答案

如果您尝试上传两个具有相同名称的文件,而powermail无法处理该文件,这是一个错误.在这种情况下:请向github报告!

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!

但是,如果您愿意,powermail可以将文件名随机化: https://github.com/einpraegsam/powermail/blob/develop/Configuration/TypoScript/Main/setup.txt#L538

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

这篇关于在typo3上的Powermail Formular中更改上载文件的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆