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


Acceptable File Type Uploads

Thread began 7/05/2009 6:16 pm by webassist144944 | Last modified 4/13/2010 11:53 am by Jason Byrnes | 2957 views | 4 replies |


Acceptable File Type Uploads

I need to check to make sure that the file that gets uploaded is one of:

I don't want to resize or change the file image at all but upload it as is if it is one of the file types.

Is there someplace (e.g. in WA_DigitalFilePro/HelperPHP.php) that I can easily change the filetypes allowed?

Thanks in advance for any help here!

Sign in to reply to this post

Ray BorduinWebAssist

Validation Toolkit can be used to validate file types, but it can't be easily added in Digital File Pro itself.

Sign in to reply to this post


Thanks Ray, VT worked great!


Sign in to reply to this post


Not working for me.

I am using a form to upload pdf files. With no validation it works. If I try the validation it fails.

This is the code:

$WAFV_Redirect = "filetype.php";
$_SESSION['WAVT_pdfmenusInsert_199_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateFE($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"] . "",".pdf",true,1);

if ($WAFV_Errors != "") {

I also tried it using the file extension rather than the serverFileName but that didnt work either. Help?

Sign in to reply to this post

Jason ByrnesWebAssist

instead of using the server file name, use the Simple file name binding found under the form collection. I am including a screen shot showing the binding I mean. The binding shows a form named WADAInsertForm, and File Field named ProductThumb

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