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

WAFV... error - Client Validation Wizard

Thread began 6/06/2011 11:32 am by Dennis | Last modified 6/09/2011 9:56 am by Jason Byrnes | 1350 views | 9 replies |

Dennis

WAFV... error - Client Validation Wizard

Hi,

I have created a form for members to upload photo's. I would like to make the file field required. I have used Spry to validate all the other fields in the form. It appears to me that the WA Client Validation tool is what I would use for this (validateing file field).

Would you agree that that is the appropriate tool?

When I attempt to use the tool I get numerous WAFV... JavaScript errors. I have tried after deleting the DW cache file.

I also have some questions regarding the File Manipulation Wizard, I am not sure when to post it, I don't have a clue which of most of the WA products I have that it belongs to. If this is the wrong place please direct me to the correct forum.

I would like to rename the uploaded files to something like photo_001, photo_002, etc so that thw photos become anonymous, how might I do that?

What is, and how would you use the "Default file" field displayed at Step 2 of 2 (Specify file output options) of the File Manipulation Wizard? See attachment screen shot.

How might I update a database column with the renamed file name?
Disregard the above question. It is answered in a step I missed in your document "Adding Digital File Pro to DataAssist..."

Also attached is a screen shot of the error and the page I am working with.

Thanks
Dennis

Attached Files
photo_submission.zip
Sign in to reply to this post

Jason ByrnesWebAssist

No, client validation should not be used to validate a file field.

You should use server validation for validating a file field.


as for file manipulztions, they are intergated intyo Form Builder 2 and Universal Email.

  I would like to rename the uploaded files to something like photo_001, photo_002, etc so that thw photos become anonymous, how might I do that?  



on the first page of the wizard set the option If file exists: rename new.

then on the second page, change the File Option from "[FileName]" to "photo"

this will cause the first file to be uplaoded as photo.jpg the next as photo_1.jpg, etc.

  What is, and how would you use the "Default file" field displayed at Step 2 of 2 (Specify file output options) of the File Manipulation Wizard? See attachment screen shot.  




the default file is the value that will be give to the Server File Name when a file is not uploaded.

see the "Adding Digital File Pro to DataAssist.." tutorial, specifically the update page section for details.

Sign in to reply to this post

Dennis

A little more detail please

Thanks Jason,

I could use a little more specific's please...

  You should use server validation for validating a file field  


Should I select the (file) field from the lsit of form fields. I'm afraid I haven't yet got the hang of when to use Server, Session or Form variables. So the options under the lightning bolt make my head spin.

  on the first page of the wizard set the option If file exists: rename new.  


You don't mention what if anything to have in the Rename to:

Using the settings show in the attached image, only the first save uses my photo_101 prefix. Subsequent saves resort back to the flename_increment. I was shooting for photo_101_1, photo_101_2.

Thanks,
Dennis

Attached Files
photo_submission.zip
Sign in to reply to this post

Jason ByrnesWebAssist

Yes, select the File Field from the form binding collection.



For the rename new option, leave the default [FileName]_[Increment]

the [FileName] portion will use whatever you set for the File name setting in the second step.

it is not possible to set a seed value _101 value like you are trying to do.

the first file uploaded will be name photo_101 on uploading other files, since photo_101 exists, it will be renamed _1:
photo_101_1 etc... the first upload will not be renamed however, since on the first upload, the file does not exist.

Sign in to reply to this post

Dennis

Jason,

The photo_101_1 is fine, thats what I would expect. However it isn't working that way.

For my testing, the actual file is capture.jpg

With the first form submit the file is saved as photo_101.jpg
With the 2nd form submit the file is saved as capture_1.jpg
With the 3rd form submit the file is saved as capture_2.jpg

Dennis

Sign in to reply to this post

Jason ByrnesWebAssist

you have three copies of the image being created, the first one still has the name set to [FileName] instead of photo_101

Sign in to reply to this post

Dennis

Jason,

Thats correct, but the files saved in the other two folders (Large, Thumbnail) are named as I described. The third folder (Original) is where I want to store the original file with the original filename.

Dennis

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Dennis

Problem Resolved

Jason,

I discovered what my problem was.

There appears to be a bug with the File Manipulation Wizard. On Step1 if you change the Action: to lets say Reaname existing file, then change it again to Rename new file, it retains [ExistingFileName]_[Increment], it does NOT enter [NewFileName]_[Increment].

I had noticed that but in correcting it I entered [FileName]_[Increment] instead of [NewFileName]_[Increment].

Sorry for the inconveience and thank you for your help.
Dennis

Sign in to reply to this post

Jason ByrnesWebAssist

OK, glad to hear it is working.

Sign in to reply to this post
loading

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