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

rating

Big image and thumb upload stopped working?

Thread began 10/26/2009 2:52 pm by olle189996 | Last modified 10/27/2009 3:30 am by olle189996 | 1083 views | 3 replies |

olle189996

Big image and thumb upload stopped working?

Hi
I used to upload 2 images with the same filefield to two different locations.

One is the big image and one goes to the thumb folder.

I am applying the Upload Files Behavior twice on the same page.
Now this does not function anymore.

What am I doing wrong?

I can use two filefields. That is working.
But I want to have the thumb created like automatic.

Code
<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "images/stora/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "120",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End?>
<?php
// WA_UploadResult2 Params Start
$WA_UploadResult2_Params = array();
// WA_UploadResult2_1 Start
$WA_UploadResult2_Params["WA_UploadResult2_1"] = array(
'UploadFolder' => "images/small/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "1",
'ResizeWidth' => "120",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult2_1 End
// WA_UploadResult2 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["button"])){
WA_DFP_UploadFiles("WA_UploadResult1", "fileField", "0", "", "JPG:80", $WA_UploadResult1_Params);
}
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult2");
if(isset($_POST["button"])){
WA_DFP_UploadFiles("WA_UploadResult2", "fileField", "0", "", "JPG:80", $WA_UploadResult2_Params);
}
?>
Regards
Olle

Sign in to reply to this post

olle189996

Ok, I have som updates about the problem.

If I use an older HelperPHP.php created in beginning of June. Everything works!

With new HelperPHP.php from 2.02 it does not.
I also get an error in MAMP php log
PHP Notice: Undefined variable: firstFile in Sites/hcm/WA_DigitalFilePro/HelperPHP.php on line 334

Is this how it should be?
I can upload two images to different folder of the same kind in the behavior by adding another [name] in the filefield.

But what if I want one large tif. and a small thumb jpg?

Regards
olle

Sign in to reply to this post

Jason ByrnesWebAssist

Can you send a copy of your page so I can look at the code.

Sign in to reply to this post

olle189996

Hi
Here is the files.
So, with the OLD_WA_DigitalFile ... helper file everything works.

With the new one created with 2.01 only one of the images is uploaded

Regards
Olle

Attached Files
Arkiv.zip
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

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