Cant get the file to upload
I have tried everything and I cant get it to work.
I have a form, this is the code:
<form action="" method="post" enctype="multipart/form-data" name="specialorder" id="specialorder">
          <input name="productname" type="hidden" id="productname" value="<?php echo $row_rsProducts['ProductName']; ?>" />
          <label></label>
        <label>
        <span class="prodname">Price Quote for <?php echo $row_rsProducts['ProductName']; ?></span><br />
        <br />
        <br />
        First Name<br />
        <input type="text" name="first" id="first" tabindex="1" />
        <br />
        <br />
        Last Name
        <br />
        <input type="text" name="last" id="last" tabindex="2" />
        <br />
        <br />
        <br />
        E-Mail Address<br />
        <input type="text" name="email" id="email" tabindex="3" />
        <br />
        <br />
        Phone<br />
        <input type="text" name="phone" id="phone" tabindex="4" />
        <br />
        </label>
        <p>
          <label>
          Quantity<br />
          <input type="text" name="quantity" id="quantity" tabindex="5" />
          <br />
          </label>
        </p>
        <p>
          <label>Artwork Upload <br />
          <input type="file" name="artwork" id="artwork" tabindex="6" />
          </label>
          <br />
          <label></label>
        </p>
        <p>
          <label>
          Options / Instructions
          <br />
          <textarea name="instructions" id="instructions" cols="30" rows="5" tabindex="7"></textarea>
          <br />
          </label>
        </p>
        <p>
          <label>
          <input type="submit" name="button" id="button" value="Submit for Price Quote" />
          </label>
        </p>
        <p>status:<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["statusCode"]; ?></p>
        <p>Error Message:<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["errorMessage"]; ?></p>
        <p>Client File Name:<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["clientFileName"]; ?></p>
        <p>Upload Folder:<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["uploadFolder"]; ?></p>
        <p>Debug Info:<?php echo WA_DFP_UploadStatusItem_debug("WA_UploadResult1"); ?></p>
                </form>
Here is the code for the upload:
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["button"])){
	WA_DFP_UploadFile("WA_UploadResult1", "artwork", "", "client_art", "[FileName]", "0", "[FileName]_[Increment]", "1000", "false", "0", "0");
}
?>
And this is the result on the page... I am redirecting to the same page... using Universal e-mail to send a copy of the uploaded file as an attachment.
The email goes through, but with no attachment, and the file is not being uploaded to the folder called client_art.   Here is the error code on the resulting page:
THis at the very top of the page:
Notice: Undefined index: artwork in /var/www/html/WA_DigitalFilePro/HelperPHP.php on line 47
This in the debugging code section:
status:0
Error Message:No file uploaded
Client File Name:
Upload Folder:
Notice: Undefined index: uploadFolder in /var/www/html/details.php on line 1510
Debug Info:Status object: WA_UploadResult1
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
HERE is line 47 of the Helper.php file:
	$uploadedFile = $_FILES[$fileField];
At this for HOURS.   Can you please help?
Thanks


