Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Problem with uploading a file
  • Posted: 03.01.2006, 12:12
     
    pkvaranasi
    rank:
    Freshman Freshman
    registered:
     April 2005
    Status:
    offline
    last visit:
    16.08.06
    Posts:
    33
    Hai,
    I am using PostNuke 0.7.6.1 in which I have added my own module called "Vendors List" in which I have to upload a file
    It has a "Browse button" to select the file

    This is the code that i have given
    echo "<input class="\"pn-normal\"" name="\"userfile\"" type="\"file\"" />"
    echo "<input type="\"hidden\"" name="\"userfile\"" value="\"$userfile\"" />"

    Now, when i click on the "Add button", the image file has to uploaded.

    The problem is that, when i have given

    $userfile=pnVarCleanFromInput('userfile');
    echo "userfile:" . $userfile;

    Then the output is
    userfile: Array

    It is not displaying the location of the file that i have given

    The same code I have given in PostNuke 0.7.1.4 and it worked fine.
    So, Please suggest me to resolve this issue in PostNuke 0.7.6.1

    Thanks in advance.
  • Posted: 04.01.2006, 15:01
     
    ainigma32
    rank:
    Professional Professional
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.03.06
    Posts:
    958

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula