ajout params post dans une balise div webtransfer dans index.php

This commit is contained in:
Alexandre_BRAVO
2024-11-19 15:42:44 +01:00
parent 9c27d1c861
commit a591fc839d
2 changed files with 12 additions and 3 deletions

View File

@ -6,6 +6,11 @@ use OCP\Util;
Util::addScript(OCA\WebTransfer\AppInfo\Application::APP_ID, 'main');
$archiveUrl = isset($_['archiveUrl']) ? $_['archiveUrl'] : ''; // Valeur par défaut vide si non définie
$token = isset($_['token']) ? $_['token'] : ''; // Valeur par défaut vide si non définie
?>
<div id="webtransfer"></div>
<div id="webtransfer"
data-archive-url="<?php echo htmlspecialchars($archiveUrl); ?>"
data-token="<?php echo htmlspecialchars($token); ?>"
></div>