Problem With Single file Upload

  •  10-01-2011, 2:38 AM

    Problem With Single file Upload

    hi m using the phpuploader but  i want the functionlity that the user only upload the single file at a time,I   tried all the configuration to restrict the user only upload a single file. but is not working
    here is code below
     
    $uploader->InsertText="Upload File (Max 10M)";
       
       $uploader->MaxSizeKB=1024000; 
       $uploader->AllowedFileExtensions="jpeg,jpg,gif,png,zip";
       $uploader->MaxFilesLimit=1;
       //Where'd the files go?
       $uploader->SaveDirectory="/uploads";
       
       $uploader->Render();
     
    but every time i uplod the first file it again open the file upload dialog box, i want that whenever user upload first file the upload button will be disable or it will show the alert box say "you cannot upload more the one file "
     
    thankyou in advance
     
    Filed under: ,
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems