Acces to the uploaded files

Last post 05-02-2010, 10:36 AM by sade1122. 7 replies.
Sort Posts: Previous Next
  •  03-22-2010, 7:59 AM 59552

    Acces to the uploaded files

    Is there a variable to access to the uploaded files?
    i use  the select-multiple-files-upload.php sample code
    and want to manipulate the files after the upload.

    Geexor : The space geek
  •  03-22-2010, 9:57 AM 59559 in reply to 59552

    Re: Acces to the uploaded files

    Pachanka,
     
    Please check the following article.
     
    Choosing Upload Method

    If you need further control over the parsing of the file uploading request, you can write a custom file upload handler. In handler page (UploadUrl) developers can rename the uploaded files, process other logics programmatically.
     
    Hope it helps.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-24-2010, 9:56 AM 59623 in reply to 59559

    Re: Acces to the uploaded files

    ok, thanks for your answer.
     
    I read the code and i saw the GetValidatingFile function.
    Does it mean that mine custom php file will be called after each file upload (3 call for an upload of 3 files) ?
     
     
    Is there a way to access to an array (for example) of all the uploaded files after the completed upload of all the files ?
    in this case my case, acces to all the files with one onely call to mine custom php file.
    Thanx again


    Geexor : The space geek
  •  03-25-2010, 4:09 AM 59641 in reply to 59623

    Re: Acces to the uploaded files

    according to an exemple i've found in help, i've done that :
     
    1 file index.php with 
     
    <form id="form1" action="envoi_resultats.php" method="POST">    
         <?php
                                $uploader=new PhpUploader();
                                $uploader->Name="myuploader_General";
                                $uploader->MultipleFilesUpload=true;
                                $uploader->InsertText="Envoyer des résultats (Max 20Mo)";
                                $uploader->MaxSizeKB=2048000;    
                                $uploader->AllowedFileExtensions="xml,doc,xls";
                                $uploader->SaveDirectory=$REP_EXPORT;
                                $uploader->Render();
           ?>    
    </form>
     
    1 file envoi_resultats.php with
    <?php require_once "phpfileuploader/phpuploader/include_phpuploader.php" ?>    
    <?php    
    //Gets the file GUID list based on uploader name       
    $fileguidlist=@$_POST["myuploader_General"];    
    if($fileguidlist)    
    {    
        $guidlist=split("/",$fileguidlist);     
        foreach($guidlist as $fileguid)    
        {    
            //get the uploaded file based on GUID       
            $mvcfile=$uploader->GetUploadedFile($fileguid);       
            if($mvcfile)       
            {       
                 //Gets the name of the file.       
                 echo($mvcfile->FileName);       
                 //Gets the temp file path.       
                 echo($mvcfile->FilePath);       
                 //Gets the size of the file.       
                 echo($mvcfile->FileSize);        
                   
                 //Deletes this instance.       
                 $mvcfile->Delete();       
            }    
        }    
    }    
    ?>
     
    Uplaod works very well :-)
    but i have the message on my envoi_resultats.php
     
    Fatal error: Call to a member function GetUploadedFile() on a non-object in C:\Inetpub\wwwroot\Portail QuizzBox\envoi_resultats.php on line 11
     
    the line 11 is the line : 
    $mvcfile=$uploader->GetUploadedFile($fileguid);

    Any idea ?
     
     
     
     

    Geexor : The space geek
  •  03-30-2010, 3:46 AM 59733 in reply to 59641

    Re: Acces to the uploaded files

    Up?
    i really need your help
     
    i must deploy my application in 1 week and during this week i'll buy your product if it works
     
    but i need to know if i can do what i need
     thanx

    Geexor : The space geek
  •  03-31-2010, 8:52 AM 59764 in reply to 59733

    Re: Acces to the uploaded files

    Dear Pachanka,
     
    Please refer to http://phpfileuploader.com/document/index.htm#page=Choose-upload-method.htm , if you want to use  function
    GetUploadedFile(), please select   "Standard PHP Upload".
     
    Regards,
    Eric
     
  •  04-02-2010, 9:20 AM 59837 in reply to 59641

    Re: Acces to the uploaded files

    Hi,
     
    You need create the uploader again in another page.
     
    $uploader=new PhpUploader();
    Regards,
    Terry
  •  05-02-2010, 10:36 AM 60614 in reply to 59837

    Re: Acces to the uploaded files

    Hello guys thanks for the details i also need this....thanks alot.
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     

    Bail Bonds Los Angeles
View as RSS news feed in XML