New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Option to add file Link #93
Comments
It would be most appreciated to have the ability to add a link. |
I too wish it functions like a normal Contao Upload File, where Contao provides a link to the file at the bottom of email text. This is due not availability of // Attach uploaded files
if (!empty($_SESSION['FILES']))
{
foreach ($_SESSION['FILES'] as $file)
{
// Add a link to the uploaded file
if ($file['uploaded'] ?? null)
{
$uploaded .= "\n" . Environment::get('base') . StringUtil::stripRootDir(\dirname($file['tmp_name'])) . '/' . rawurlencode($file['name']);
continue;
}
$email->attachFileFromString(file_get_contents($file['tmp_name']), $file['name'], $file['type']);
}
}
$uploaded = trim($uploaded) ? "\n\n---\n" . $uploaded : ''; https://github.com/contao/contao/blob/4.13/core-bundle/src/Resources/contao/forms/Form.php#L458-L473 |
This is a regression caused by #92 |
Contao 4.13
PHP 8.1
In the email sent, only the relative path to the files are listed.
Having an option to add the complete URL to link directly to the file would help a lot.
If there is not already a way of doing this (?) that would be an awesome feature.
This issue may be related to #77
The text was updated successfully, but these errors were encountered: