close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Image upload not named as specified

Thread began 10/16/2010 3:42 pm by thom389733 | Last modified 10/18/2010 3:32 pm by Jason Byrnes | 424 views | 1 replies |


Image upload not named as specified

I am trying to set it up so that when a user uploads an image file it gets renamed to CardImage.jpg and always overwrites a file of the same name if it exists on the server.

The code below (generated by your File Manipulation app) uploads to the correct folder but always names the file something like this "13510636624cb9dd104e8642.61168118.jpg". Every time I submit the form it uploads another file with a similar file name. It never names it CardImage.jpg.

Have I specified something incorrectly? I'm guessing these filenames are the temp name that is uploaded. What can I do to accomplish what I want?

Thanks in advance for your advice.


<?php require_once("../webassist/file_manipulation/helperphp.php"); ?>
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "CardImages/",
'FileName' => "CardImages/CardImage.jpg",
'DefaultFileName' => "CardImages/CardImage.jpg",
'ResizeType' => "3",
'ResizeWidth' => "120",
'ResizeHeight' => "100",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
if((((isset($_POST["button"]))?$_POST["button"]:"") != "")){
WA_DFP_UploadFiles("WA_UploadResult1", "Upload", "0", "", "JPG:80", $WA_UploadResult1_Params);
header ("Location: $URL");

Sign in to reply to this post

Jason ByrnesWebAssist

file names can only contain alpha numeric characters. also, the extesnion used will come from the uploaded file.

'FileName' => "CardImages/CardImage.jpg",

'FileName' => "CardImage",

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





Ease of use


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