|
|
@@ -1,5 +1,10 @@
|
|
|
<?php
|
|
|
$data = [];
|
|
|
+
|
|
|
+$uploadBytes = fichier::iniSizeToBytes();
|
|
|
+$postBytes = fichier::iniSizeToBytes();
|
|
|
+$maxBytes = min($uploadBytes, $postBytes);
|
|
|
+
|
|
|
?>
|
|
|
<nav aria-label="breadcrumb" class="ariane">
|
|
|
<ol class="breadcrumb" style="border-radius: 0 0 5px 5px; padding:5px 10px;">
|
|
|
@@ -15,16 +20,6 @@ $data = [];
|
|
|
<span id="progressPercent">0%</span>
|
|
|
<progress id="progressBar" value="0" max="100" style="width: 100%; display: none;"></progress>
|
|
|
</div>
|
|
|
- <?php
|
|
|
- // Récupère les valeurs de php.ini et calcule la taille maximale en octets
|
|
|
- $uploadIni = ini_get('upload_max_filesize');
|
|
|
- $postIni = ini_get('post_max_size');
|
|
|
-
|
|
|
- $uploadBytes = fichier::iniSizeToBytes($uploadIni);
|
|
|
- $postBytes = fichier::iniSizeToBytes($postIni);
|
|
|
- $maxBytes = min($uploadBytes, $postBytes);
|
|
|
- ?>
|
|
|
-
|
|
|
<div class='form-group SubmitElement'>
|
|
|
<label for='videoFile'>Charger la vidéo</label>
|
|
|
<div class='custom-file'>
|
|
|
@@ -35,7 +30,6 @@ $data = [];
|
|
|
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $maxBytes; ?>">
|
|
|
<small class="form-text text-muted">
|
|
|
Taille max autorisée : <?php echo fichier::bytesToHuman($maxBytes); ?>
|
|
|
- (php.ini : upload_max_filesize=<?php echo htmlspecialchars($uploadIni); ?>, post_max_size=<?php echo htmlspecialchars($postIni); ?>)
|
|
|
</small>
|
|
|
</div>
|
|
|
<div class='form-group' id="previewFileName" style="display:none;">
|