File Upload - userfile not getting passed

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
bobmeetin
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Sep 27, 2007 1:24 am

File Upload - userfile not getting passed

Post by bobmeetin » Wed Dec 12, 2007 4:04 pm

I have a simple file upload script which works outside of joomla, but within it fails to upload or even display the common userfile variable. It does see and pass other values, such as $fname in this case. 

I am using JUMI to access the script.  In the page contents detail I have.  You can get to the upload form at:

http://www.dottedi.biz/jvm13a/
select Upload Form from the bottom of the Main Menu.

The upload form itself looks something like:


$fname = htmlspecialchars(stripslashes($_POST['fname']));
$userfile = htmlspecialchars(stripslashes($_POST['userfile']));

echo "

userfile: $userfile
fname: $fn

"; // purpose is to output value of userfile for testing only

// As this is in test mode to troubleshoot userfile, I don't have any save file processing action in this example.
?>


 

Upload File




echo "
 


 
 
 



 


 
 
 


";
?>




------------>>  Suggestions please?  -Bob

Post Reply