Dear Ray
Thanks again for your reply. Your suggestion:
.
'FileName' => "". session_id() ."",
succeeded in renaming the uploaded image file (also with increments) into the image folder, however I have not been able to get the corresponding image name into the DB.
Obviously I need change something in the bind column but so far all my variations either give me the original file name or write a blank
Insert Record:
$InsertQuery->bindColumn("exhibition_image", "s", "".((isset($_FILES["exhibition_image"]))?$_FILES["exhibition_image"]["name"]:"") ."", "WA_DEFAULT");
File Manipulation:
// WA_UploadResult1_1 Start
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "../../exhibitions/",
'FileName' => "". session_id() ."",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "205",
'ResizeHeight' => "",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if($_SERVER["REQUEST_METHOD"] == "POST"){
WA_DFP_UploadFiles("WA_UploadResult1", "exhibition_image", "2", "[NewFileName]_[Increment]", "true", $WA_UploadResult1_Params);
}
?>
Upload Form:
<td><input name="exhibition_image" type="file" id="exhibition_image" value=""></td>
I can see the session_id with this code:
<?php echo session_id()?>
which I could put into the form if necessary.
It would be great to accomplish this last step.
Attached is an image file with umlauts,
Thanks for your help.