Results 1 to 2 of 2

Thread: Problem in uploading

  1. #1
    Junior Member
    Join Date
    Feb 2008
    Answers
    3

    Problem in uploading

    Hi,
    I am uploading a file,but it does not work well.
    Actually i am using smarty templates and uber uploader progress bar but it does not works. some times file uploaded then that time progress bar does not show any progress.
    Any one help me?

    //Sample code

    $temp="upload";
    if(!file_exists($temp)) //if directory does not exist
    {
    mkdir($temp,0777); //make a directory TMP.
    }

    $fn=$HTTP_POST_FILES['Upload']['name']; //File name which should be uploaded..
    $t=$HTTP_POST_FILES['Upload']['type'];
    $s=$HTTP_POST_FILES['Upload']['size'];
    $pass = generateRandName();
    $newName=$pass . "_" . $fn;
    rename($fn,$newName);

    $upload=move_uploaded_file($HTTP_POST_FILES['Upload']['tmp_name'], "$temp/$newName");

    Last edited by prafulkr; 02-15-2008 at 02:47 AM.

  2. #2
    Junior Member
    Join Date
    May 2008
    Answers
    1

    Re: Problem in uploading

    I started uploading in LoadRunner--Correlation
    pl check that as I uploaded without Logging in


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact