close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Thumbnail not created

Thread began 10/20/2009 5:43 pm by njewett222247 | Last modified 10/22/2009 5:17 pm by Jason Byrnes | 1140 views | 6 replies |

njewett222247

Thumbnail not created

I Have Digital File Pro uploading a file but the second file _thumb is not being created!


Thanks,

Nick

Here is the 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' => "uploads/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "120",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1_2 Start
$WA_UploadResult1_Params["WA_UploadResult1_2"] = array(
'UploadFolder' => "images/",
'FileName' => "[FileName]_thumb",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "120",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_2 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["button"])){
WA_DFP_UploadFiles("WA_UploadResult1", "upload", "0", "", "true", $WA_UploadResult1_Params);
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="WA_DigitalFilePro/jquery-blockui-formprocessing.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>
<div id="form1_ProgressWrapper">
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<label>File Upload
<input type="file" name="upload" id="upload" />
</label>
<label>
<input type="submit" name="button" id="button" value="Submit" />
</label>
</form>
</div>

<div id="form1_ProgressMessageWrapper" class="blockUIOverlay" style="display:none;">
<script type="text/javascript">
WADFP_SetProgressToForm('form1', 'form1_ProgressMessageWrapper', WADFP_Theme_Options['Bar:Slate']);
</script>
<div id="form1_ProgressMessage" >

<p style="margin:10px; padding:5px;" ><img src="WA_DigitalFilePro/images/slate-bar.gif" alt="" title="" style="vertical-align:middle;" />&nbsp;&nbsp;Please wait</p>

</div>
</div>
</body>
</html>

Sign in to reply to this post

Jason ByrnesWebAssist

add the following at line 1 to see if there is a PHP error occuring when it is trying to crate the thumbnail:

php:
<?php
error_reporting
(E_ALL);
ini_set('display_errors','on');
?>




you may need to increase the memory_limit setting in the PHP.ini file to something like 256M

Sign in to reply to this post

martin389853

simples

I'm pretty new to this but it looks to me from your code that you just haven't set up the WA upload to also create thumbnails.

All you have to do is this; On stage 2 of 2 when setting up the uploader, the first option is the File Settings. Beneath it is sais +/-. Click on the +. If you click inside the list of [Filename]'s in the box you can edit them as you did before by selecting them. Remember that the new Filename is set to create your thumbnails by default.

I'm pretty sure that's you buddy.

Sign in to reply to this post

nickj

no thumbnails etc.

In the wizard all the settings were made to make the thumbnails include re-sizing. I'm pretty sure that's the behavior!

Buddy?

Sign in to reply to this post

Jason ByrnesWebAssist

Have you followed my advice in message 2 of this thread and added the code specified?

also try setting the memory_limit setting in the PHP.ini file to something like 256M

Sign in to reply to this post

nickj

Tested Code

Not yet, I was working on DataAssist and am still bogged down! But I will,
Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome.

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