Different errors on diff machines

Last post 01-14-2011, 6:02 AM by josez. 9 replies.
Sort Posts: Previous Next
  •  11-15-2010, 3:31 AM 65002

    Different errors on diff machines

    I am using php file uploader on three four pages to upload one file only. Not multiple. And I am using manual start upload.
     
    Now when I upload file it gives me errors like
    1)FLM
    2)" gulaal06(www.songs.pk).mp3 cannot be uploaded! //gulaal06(www.songs.pk).mp3 is file name// File size (6.73 MB) is too large.
          The maximum file size allowed is set to: 2.00 MB."
     
    These are the different errors for different computers means not even same error.
     
    This is the code for file input
     
    $uploader=new PhpUploader();
    $uploader->Name="ufile1";
    $uploader->MaxSizeKB=100048576;
    $uploader->AllowedFileExtensions="*.mp3,*.mp4,*.wma";    
    $uploader->ManualStartUpload=true;
    $uploader->Render();
     
    ****Javascript function
     function doStart()
     {
            if(document.getElementById('ufile1'))
            {
                var uploadobj = document.getElementById('ufile1');
                if (uploadobj.getqueuecount() > 0)
                {
                    uploadobj.startupload();
                }
            }
    }
     
    And I have increased "post_max_size" and "upload_max_filesize" for images.
     
    So, will you please let me know where I am doing mistake.
     
    Waiting for replay.
    Thank you.
  •  11-15-2010, 7:35 AM 65005 in reply to 65002

    Re: Different errors on diff machines

    Dear jaydev,
     
    Now when I upload file it gives me errors like
    1)FLM
     
                 Please check this thread, 
     
    it may helps. make sure you have the last version too.
     
    another solution , is set this :
     
    $uploader->FlashUploadMode="Http";
    2)" gulaal06(www.songs.pk).mp3 cannot be uploaded! //gulaal06(www.songs.pk).mp3 is file name// File size (6.73 MB) is too large.
          The maximum file size allowed is set to: 2.00 MB."
      
               Please save the following code to test.php, does it happen to this example?
    <?php require_once "phpuploader/include_phpuploader.php" ?>
    <?php session_start(); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
     <title>
      Form - Start uploading manually
     </title>
     <script type="text/javascript">
     function doStart()
     {
      var uploadobj = document.getElementById('myuploader');
      if (uploadobj.getqueuecount() > 0)
      {
       uploadobj.startupload();
      }
      else
      {
       alert("Please browse files for upload");
      }
     }
     </script>
     
    </head>
    <body>
     <div class="demo">    
       <h2>Start uploading manually</h2>
       <p>This sample demonstrates how to start uploading manually after file selection vs automatically.</p>
       <P>Allowed file types: <span style="color:red">jpg, gif, txt, png, zip</span></p>

       <!-- do not need enctype="multipart/form-data" -->
       <form id="form1" method="POST">
        <?php    
         $uploader=new PhpUploader();
         $uploader->MaxSizeKB=102400;
         $uploader->Name="myuploader";
         $uploader->InsertText="Select multiple files (Max 100M)";
         $uploader->AllowedFileExtensions="*.jpg,*.png,*.gif,*.txt,*.zip,*.rar"; 
         $uploader->MultipleFilesUpload=true;
         $uploader->ManualStartUpload=true;
         $uploader->Render();
        ?>
        <br /><br /><br />
        <button id="submitbutton" onclick="doStart();return false;">Start Uploading Files</button>

       </form>
       
       <br/><br/><br/>
    <?php
    $fileguidlist=@$_POST["myuploader"];
    if($fileguidlist)
    {
     $guidlist=explode("/",$fileguidlist);
     
     echo("<div style='font-family:Fixedsys;'>");
     echo("Uploaded ");
     echo(count($guidlist));
     echo(" files:");
     echo("</div>");
     echo("<hr/>");
     
     foreach($guidlist as $fileguid)
     {
      $mvcfile=$uploader->GetUploadedFile($fileguid);
      if($mvcfile)
      {
       echo("<div style='font-family:Fixedsys;border-bottom:dashed 1px gray;padding:6px;'>");
       echo("FileName: ");
       echo($mvcfile->FileName);
       echo("<br/>FileSize: ");
       echo($mvcfile->FileSize." b");
     //  echo("<br/>FilePath: ");
     //  echo($mvcfile->FilePath);
       echo("</div>");
       
       //Moves the uploaded file to a new location.
       //$mvcfile->MoveTo("/uploads");
       //Copys the uploaded file to a new location.
       //$mvcfile->CopyTo("/uploads");
       //Deletes this instance.
       //$mvcfile->Delete();
      }
     }
    }
    ?>
        
     </div>
    </body>
    </html>
     
    Thank you for asking
      
     
     
  •  11-16-2010, 1:32 AM 65024 in reply to 65005

    Re: Different errors on diff machines

    I have tried the code u gave me here. But getting same problem in this test file also.
    and I am using latest version. 
     
     
    when i upload mp3 file more then 2MB it gives me 
     
    1)gulaal.mp3 cannot be uploaded! //gulaal.mp3 is file name// File size (6.73 MB) is too large.
    The maximum file size allowed is set to: 2.00 MB.
    Now This happens to my machine only when I have tried 35MB .zip file on different machine,
     
    2)First it gave me html browse button when I clicked on "select multiple fiels " button
    and on click on start uploading files it gave me 
    3)No Request File
    error after some time.
  •  11-16-2010, 2:39 AM 65030 in reply to 65005

    Re: Different errors on diff machines

    I have tried the code u gave me here. But getting same problem in this test file also.
    and I am using latest version. 
     
     
    when i upload mp3 file more then 2MB it gives me 
     
    1)gulaal.mp3 cannot be uploaded! //gulaal.mp3 is file name// File size (6.73 MB) is too large.
    The maximum file size allowed is set to: 2.00 MB.
    Now This happens to my machine only when I have tried 35MB .zip file on different machine,
     
    2)First it gave me html browse button when I clicked on "select multiple fiels " button
    and on click on start uploading files it gave me 
    3)No Request File
    error after some time.
  •  11-17-2010, 3:13 AM 65062 in reply to 65030

    Re: Different errors on diff machines

    Hi jaydev,

     

    I just tested your site and the page you provided.

     

    1.       Test page http://gen2clients.com/uic_radio/uRo58LgD/testuploader.php works fine for me, I tried a file large than 6M.

     

    It works on upload type “silverlight”, if I use upload type ” flash”, will get the same problem.

     

    Try set temp directory for upload, follow the thread below to set it and try again.

     

    http://cutesoft.net/forums/thread/53765.aspx

     

    2.     The code below you set in the page you sent to me. I am not sure set in the page and set in php.ini will has some different or not, the if set in page, I will get some errors on my end. So can you try set in php.ini and try again?

     

    ini_set("post_max_size","100M");

    ini_set("upload_max_filesize","100M");

    ini_set('meemory_limit','200M');

     

    Keep me posted.

     

    Regards,

     

    Ken

  •  11-19-2010, 6:36 AM 65090 in reply to 65062

    Re: Different errors on diff machines

    Hi ken,
    Thanks for replay.
     
    You told that you are not having any problem with uploading.
    Even I have uploaded many files with the same script on some machines.
     
    But that is the issue.
    Its not working in every system. and its giving me different errors on different machines.
     
     
  •  11-21-2010, 8:15 PM 65111 in reply to 65090

    Re: Different errors on diff machines

    Dear jaydev,
     
    Have you trial the method I provided above?
     
    Keep me posted after the tests.
     
    Regards,
     
    ken
     
  •  11-22-2010, 1:04 AM 65112 in reply to 65111

    Re: Different errors on diff machines

    Hi Ken,
     
    I have tried to set the temp directory to a new "tempd" folder. which is in current dir. with script.Can we do so?
     And if yes then its giving me this error on uploading 1MB zip file
     
     
     
     
     
     And old problems are still there. This time got new error
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
  •  11-24-2010, 8:51 PM 65156 in reply to 65112

    Re: Different errors on diff machines

    Hi jaydev,
     
    Can you set up ftp access for me and send the information to [email protected]? I will check it and get back to you as soon as possible.
     
    Regards,
     
    Ken
  •  01-14-2011, 6:02 AM 65722 in reply to 65156

    Re: Different errors on diff machines

    Hello Ken
     
    I am also facing the same problem ""Server Side Exception".
    but this does not occur when I upload from my windows 7 machine.
    When tried from a XP machine only I came across this error and I tried on a ubuntu machine too. There also the same error.
    Can you help me to make it rite?
     
    Thanks
    Jose
View as RSS news feed in XML