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

File Extension Validation never passes

Thread began 12/01/2011 6:10 pm by anonymous | Last modified 12/02/2011 11:08 am by anonymous | 749 views | 4 replies |

anonymous

File Extension Validation never passes

I keep running into this issue where if I specify validation, say for an image, and try to upload an actual image, the validation never passes.

I toyed with the regular expression it uses and noticed that it seems to give me the first letter of the file, so i think something is wrong with it.

Has anyone else ran into this issue and found a quick fix?

Thanks,

Brian

Sign in to reply to this post

Ian S

This post has been deleted.

Jason ByrnesWebAssist

how are you setting the validation?


here is a sample file i put together for file extension validation, it will only allow .jpg, .gif or .png files.

Attached Files
fileExtension.php.zip
Sign in to reply to this post

anonymous

@Jason,

I am setting server validation through the dialog box. For some reason, even though I am truly uploading an image, it never passes - always kicking back the error.

Thanks,

Brian

Sign in to reply to this post

Jason ByrnesWebAssist

I understand that, what i was asking is what are the settings you are using in the dialogue box?

did you look at the example page I sent? did you try that out?

here is a screen shot showing the settings that i used when creating the sample page.

Sign in to reply to this post

anonymous

Ahhh, I think I figured it out.

I am a numbskull sometimes (ok... most of the time).

I was applying these validations to an insert page created by dataAssist.

One problem, though - dataAssist does not add the encoding for the form for file handling such as: enctype="multipart/form-data"

After adding that, it appears that life will, in fact, go on.

I even hear that the world will continue rotating.

Amazing.

Thanks,

Brian

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