close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Can DFPro process PDF files?

Thread began 1/22/2010 12:29 pm by miav solutions | Last modified 2/13/2014 10:50 pm by miav solutions | 919 views | 4 replies

Jimmy Wu

Which version of Digital File Pro are you using?

I'm sorry, I didn't realize you were using this with PowerStore v2. You will have to go to the server behaviors panel and double click on the WA Upload Files server behavior. In step 1, under Upload Settings, you will have to uncheck the Web images only checkbox.

If you are using Digital File Pro v1, you will have to change the code manually. Find the code that looks like this:

php:
<?php
WA_DFP_SetupUploadStatusStruct
("WA_UploadResult1");
if(
$_SERVER["REQUEST_METHOD"] == "POST"){
    
WA_DFP_UploadFiles("WA_UploadResult1""ProductImage""2""[NewFileName]_[Increment]""true"$WA_UploadResult1_Params);
}
?>
<?php
WA_DFP_SetupUploadStatusStruct
("WA_UploadResult2");
if(
$_SERVER["REQUEST_METHOD"] == "POST"){
    
WA_DFP_UploadFiles("WA_UploadResult2""ProductThumb""2""[NewFileName]_[Increment]""true"$WA_UploadResult2_Params);
}
?>



Change the "true" to "false", which is the parameter that specifies whether it should be web images only or not.

The validation on the field will continue to only allow images, so you would have to modify the validation code to include pdf files. The input field should look like this:

<input name="ProductThumb" type="file" id="ProductThumb" onchange="WAValidateFE(document.forms[0].ProductThumb,document.forms[0].ProductThumb.value,'- Invalid file extension','.gif, .jpg, .jpeg, .png',document.forms[0].ProductThumb,0,true);WAValidateHD(document.forms[0].ProductThumb,'ProductThumbValidation',false);if (document.getElementById('ProductThumbServerValidation')) document.getElementById('ProductThumbServerValidation').style.display='none'" />



You will have to find the list of allowed file extensions:
'.gif, .jpg, .jpeg, .png'

And change the list to what you want allowed. You will have to do this for both the input boxes.

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