close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

multiple image upload with DFP

Thread began 2/02/2010 8:59 am by jeffmg279672 | Last modified 2/02/2010 6:23 pm by jeffmg279672 | 1411 views | 3 replies

jeffmg279672

multiple image upload with DFP

I've scoured the forum and can't find an answer to this, so here goes:

MacBook Pro 10.5.8 (2.26 Ghz Intel Core 2 Duo), DMW 8.0.2, Digital File Pro 1.1.3.

I've put together a simple admin page where I'd like to be able to upload up to 10 images to an images folder. I've tried various different versions of this page, but whatever happens, only the first image gets uploaded. Code for the page is below and I'd appreciate any assistance in pointing out where I might be going wrong.

Jeff

--------------------------------------
<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Submit"])){
WA_DFP_UploadFile("WA_UploadResult1", "file", "", "craneimages/", "[FileName]", "2", "[FileName]_[Increment]", "1024", "false", "0", "0");
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
-->
</style>
</head>

<body>
<table width="400">
<tr>
<td colspan="2"><span class="style3">Manage all listings: </span></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td><span class="style3">Create a new listing </span></td>
<td><span class="style3"><a href="plantList_Insert.php">click here</a> </span></td>
</tr>
<tr>
<td><span class="style3">Delete an existing listing </span></td>
<td><span class="style3"><a href="plantList_Delete.php">click here</a> </span></td>
</tr>
<tr>
<td><span class="style3">Update an existing listing </span></td>
<td><span class="style3"><a href="plantList_Update.php">click here </a></span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="style3">Upload an image: </td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><form id="form1" name="form1" enctype="multipart/form-data" method="post" action="">
<input type="file" name="file" />
<br />
<input type="file" name="file2" />
<br />
<input type="file" name="file3" />
<br />
<input type="file" name="file4" />
<br />
<input type="file" name="file5" />
<br />
<input type="file" name="file6" />
<br />
<input type="file" name="file7" />
<br />
<input type="file" name="file8" />
<br />
<input type="file" name="file9" />
<br />
<input type="file" name="file10" />

<br />
<input type="submit" name="Submit" value="Submit" />
</form>
</td>
</tr>
</table>
</body>
</html>

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...