Ok, I put in sode code with a little time stamp to do the job.
Question however, Is there a way to NOT use get?
Right now I use this code on a Div that I unhide on a page to upload:
- <div class="demo" id="uploaderDiv" style="display:none;">
- <h1>Selecting multiple files for upload</h1>
- <h2><p>You Can select multiple files and upload multiple files at once.</p>
- <?php
-
- $uploader=new PhpUploader();
- $uploader->MaxSizeKB=2150400;
- $uploader->Name="myuploader";
- $uploader->MultipleFilesUpload=true;
-
- $uploader->SaveDirectory="/FTP2/WebDisk/Uploaded_Files/";
- $uploader->InsertText="<br><br>CLICK TO UPLOAD FILE(S)<br>* Max 2 GB *<br><br>Goes to the 'Uploaded Files' Folder.<br><br>";
-
- $uploader->AllowedFileExtensions="*.jpg,*.png,*.gif";
- $uploader->Render();
-
- ?>
-
- <ol id="filelist" align="left">
- </ol>
- <input type="button" name="answer" value="Close" onclick="fadeTrans('uploaderDiv')" style="width:100;" />
- </div>
However, with code provided, you were using a form to PUSH to info. Is it possible to do it without a form like I am above:
New code:
- <div class="demo" id="uploaderDiv" style="display:none;">
- <h1>Selecting multiple files for upload</h1>
- <h2><p>You Can select multiple files and upload multiple files at once.</p>
-
- <?php
-
- $uploader=new PhpUploader();
- $uploader->MaxSizeKB=2150400;
- $uploader->Name="myuploader";
- $uploader->MultipleFilesUpload=true;
-
- {
- $uploader->InsertText="<br><br>CLICK TO UPLOAD FILE(S)<br>* Max 2 GB *<br><br>Goes to the currently open Folder.<br><br>";
-
- }
- $uploader->AllowedFileExtensions="*.jpg,*.png,*.pdf";
- $uploader->Render();
-
- $fileguidlist=@$_POST["myuploader"];
- if($fileguidlist)
- {
- $guidlist=explode("/",$fileguidlist);
- foreach($guidlist as $fileguid)
- {
-
-
- $mvcfile=$uploader->GetUploadedFile($fileguid);
- if($mvcfile)
- {
- $path="/FTP2/WebDisk/Uploaded_Files/test/";
- $currentfilename=$mvcfile->FileName;
- $time=date('H:i:s').'_';
- if(file_exists($path.$currentfilename))
- {
- $mvcfile->CopyTo($path.$time.$currentfilename);
- }
- else
- {
- $mvcfile->CopyTo($path.$currentfilename);
- }
-
-
-
- }
- }
-
- }
- ?>
- <ol id="filelist" align="left">
- </ol>
- <input type="button" name="answer" value="Close" onclick="fadeTrans('uploaderDiv')" style="width:100;" />
-
- </div>