|
From: bob nt <bob...@ya...> - 2002-04-03 16:24:12
|
hi
i'm working with postnuke.& trying to upload something
from postnuke(infact i have added some code for
upload)
now when i call the function as upload($file_up) where
file_up is the name of my field in html
(<input type=file name=file_up>)
i get an error like
warning:wrong datatype for second argument in call to
in_array in upload.php line no 71.
& the file u have tried to upload is not allowed.
the line in code its pointing out is
""if (!in_array($the_file_type,$allowed_types1)){
echo"the file u have tried to upload is not allowed.";
& oi ahve already defined the array.But when i run
this file saperately it works fine.
i don't understand what to do.
plz help me.
prasad
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
|