Can we have 2 of them in the same page ?
- <table>
- <tr>
- <td><span class="titreUpload">Votre photo de nouvelle principale</span></td>
- </tr>
- <tr>
- <td>
- <?php
-
- $nomDossier = $_REQUEST['nouvelleImage'];
-
- $uploaderPrincipale=new PhpUploader();
-
- $uploaderPrincipale->MultipleFilesUpload=false;
- $uploaderPrincipale->InsertText="Téléverser votre image principale";
- $uploaderPrincipale->AllowedFileExtensions="jpg, png, gif, tga";
-
- $uploaderPrincipale->MaxSizeKB=20000;
-
- $uploaderPrincipale->SaveDirectory="../images/nouvelles/".$nomDossier."/photoPrincipale";
-
- $uploaderPrincipale->FlashUploadMode="Partial";
-
- $uploaderPrincipale->Render();
- ?>
- </td>
- </tr>
- <tr>
- <td><span class="titreUpload">Vos photos de nouvelle secondaires</span></td>
- </tr>
- <tr>
- <td>
- <?php
-
- $nomDossier = $_REQUEST['nouvelleImage'];
-
- $uploaderSecondaire=new PhpUploader();
-
- $uploaderSecondaire->MultipleFilesUpload=true;
- $uploaderSecondaire->InsertText="Téléverser vos images secondaires";
- $uploaderSecondaire->AllowedFileExtensions="jpg, png, gif, tga";
-
- $uploaderSecondaire->MaxSizeKB=20000;
-
- $uploaderSecondaire->SaveDirectory="../images/nouvelles/".$nomDossier."/photoSecondaires";
-
- $uploaderSecondaire->FlashUploadMode="Partial";
-
- $uploaderSecondaire->Render();
- ?>
- </td>
- </tr>
- </table>