Uploading files - update - DFPv2
Hello, I use digital file Pro 113 with Dreaweaver CS3 under winXP pro sp3 (now DigitalFilePro v2)
ItemID = 29
ItemCatID = 5
ItemAnnee = 2008
ItemAuteur = XY
ItemName = Nom
ItemDesc = Descript.
ItemThumb = small_image.jpg
ItemImage = big_image.jpg
With digital file Pro 113, it was necessary to a field for the thumbnail and a field for the large image (detail page).
Following the procedure "Uploading files: update - interactive tutorial", works very well.
I discovered the DigitalFilePro v2, I've been interested in (productshot - small wide) image resizing.
What has seduced me also was the ability to resize in two sizes, put them on the server in different folders and enter the name of the image in the database.
Unfortunately, I followed the procedure for the 113 version and in the cases where change year or the author, but sought to modify the image. The name of the image is removed from the database.
Clearly the philosophy is not the same between the 113 version and version 2
Here's what reproduced me inspiration from the DigitalFilePro 113 for DigitalFilePro v2 tutorial.
Can you help me?
In FORM UPDATE
<input type="hidden" name="ItemThumb" id="ItemThumb" value="<?php echo(str_replace('"', '"', $row_WADAitems['ItemThumb'])); ?>" size="32" />
<input type="hidden" name="ItemImage" id="ItemImage" value="<?php echo(str_replace('"', '"', $row_WADAitems['ItemImage'])); ?>" size="32" />
In RECORDSET UPDATE
ItemThumb = <?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["WA_UploadResult1_2"]["serverFileName"]; ?>
ItemImage = <?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["WA_UploadResult1_1"]["serverFileName"]; ?>
In WA upload file
default file (big) = <?php echo ((isset($_POST["ItemImage"]))?$_POST["ItemImage"]:""); ?>
default file (small) = <?php echo ((isset($_POST["ItemThumb"]))?$_POST["ItemThumb"]:""); ?>
Will we have a small formative video for DigitalFilePro v2?
Please Mark Fletcher ;)
Uploading files: Update (Part 1) (Interactive Tutorial)
Uploading files: Update (Part 2) (Interactive Tutorial)
Thanks
John