Reply to Re: Local file doesn't exist error

Re: Local file doesn't exist error new!
by Kathy, 11 years, 6 months ago
Here is part of my form - if the user chooses to upload their own stationery, "stationery_wrap" div is opened, the file box appears and they select their file from their hard drive. This is the file I want to upload onto the filesystem of my server, and put the filename into a mysql db.

<input type="radio" value="plain" class="stationery_radio" name="stationery_radio" checked />
<label for="plain" >Plain</label>
<input type="radio" value="easter" class="stationery_radio" name="stationery_radio" />
......
<input type="radio" value="own_stationery" class="stationery_radio" name="stationery_radio">
<label for="own_stationery">Add Your Own</label>

<div id="stationery_wrap">
<label for="custom_stationery">Select File: </label>
<input type="file" id="custom_stationery" value="" name="custom_stationery" />
</div>


All the variables are put in here:
foreach ($_POST as $field => $value)	
$this->message_vars[$field] = parent::secure($value);
$this->process();
In process, I call the upload:
$custom_stationery = ($_FILES['custom_stationery']);
$handle = new Upload($_FILES['custom_stationery']);
Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important