close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

php upload settings not working correctly

Thread began 8/17/2009 11:58 am by deafboyz_audio386924 | Last modified 8/18/2009 11:49 am by Jason Byrnes | 1293 views | 5 replies |

deafboyz_audio386924

php upload settings not working correctly

I have been trying to get an upload page made for a couple days now. I'm using CS4 with a php/mySQL server environment. My problem is that the images to be uploaded to my server are not. I have not messed with the helperphp.php script at all.
When the submit button is pressed i either get a blank page, or nothing happens( i have tried many settings) Can someone help me? let em know if you need any more info.
Here is my form for the upload page...
<div id="mainContent">
<div id="leftDiv"></div>
<div id="uploadDiv">
<form id="form1" name="form1" method="post" action="HelperPHP.php">
<input name="Browse" type="file" size="50" maxlength="200" />
</form>
<form id="form2" name="form2" method="post" action="">
<input name="Browse" type="file" size="50" maxlength="200" />
</form>
<form id="form3" name="form3" method="post" action="">
<input name="Browse" type="file" size="50" maxlength="200" />
</form>
<form id="form4" name="form4" method="post" action="">
<input name="Browse" type="file" size="50" maxlength="200" />
</form>
<form id="form5" name="form5" method="post" action="">
<input name="Browse" type="file" size="50" maxlength="200" />
</form><form id="form6" name="form6" method="post" action="/HelperPHP.php"><input name="Submit" type="submit" id="submit" value="Submit" /></form>
</div>
</div>

Sign in to reply to this post

Jason ByrnesWebAssist

The forms encoding type needs to be set to multipart/form-data, the action should be left blank and there should only be one form tag instead of 6:

html:
<div id="mainContent">
<div id="leftDiv"></div>
<div id="uploadDiv">
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<input name="Browse" type="file" size="50" maxlength="200" />
<input name="Browse" type="file" size="50" maxlength="200" />
<input name="Browse" type="file" size="50" maxlength="200" />
<input name="Browse" type="file" size="50" maxlength="200" />
<input name="Browse" type="file" size="50" maxlength="200" />
<input name="Submit" type="submit" id="submit" value="Submit" /></form>
</div>
</div>
Sign in to reply to this post

deafboyz_audio386924

thanks a lot Jason, made those changes and now all the page is doing is refreshing. doesn't seem to be uploading to my server, i waited 30 min and still no pic in my images folder.... the error im getting at the top of the page is

"UploadNotice: Undefined variable: firstFile in  C:\wamp\www\DBAtest\WA_DigitalFilePro\HelperPHP.php on line  334"

helperphp.php is my script for my upload behavior... here is a few lines previous to 334

if($counter == 0){ // set first upload values into V1 status values
$_SESSION[$sessionName] = $defaultFileName;
foreach($WA_DFP_UploadStatus[$statusName][$key] as $subkey=>$subval){
$WA_DFP_UploadStatus[$statusName][$subkey] = $subval;
}
}
$counter++;
}
}

here is the error line (334) + the rest in that string(-338)

if (file_exists($firstFile))  {
unlink($firstFile);
}
return;
}


Cant quite get a grip on what exactly i can do to fix this.. if anyone has any ideas lemme know, thanks again guys

Sign in to reply to this post

Jason ByrnesWebAssist

In the download center for Digital File Pro, try using the Beta Build that is available.

Sign in to reply to this post

deafboyz_audio386924

ok this is weird, my fifth browse box uploads the file now... dont know if thats bc of the beta or not, on to test it

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear it's working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...