CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • File upload required, but no validation happens
Pages: [1]

Author Topic: File upload required, but no validation happens  (Read 768 times)

yvoalen

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.x
  • PHP version: 5.2.6
File upload required, but no validation happens
April 20, 2011, 11:50:32 am
Created a file field in custom data, set it as required, added it to profile, set it as required.
Field remains not required because no error message is given, although file upload just works fine.
Tried this first in 3.2.1, next in 3.3.6 hoping this issue was solved.

Anyone has a proper fix for this?

Thanks

xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
Re: File upload required, but no validation happens
April 20, 2011, 07:52:54 pm
It has been a bug logged far back.

It has not been fixed yet.

I have created a drupal module that fixes it (alone with other custom validation [zip code, phone number, etc]

It basically checks to see if the file has been attached and if so if it is a blank file (0 byte) or not.


I just throw it on github, use the link below

https://github.com/emotive/CiviCRM-custom-validate


Hope it works for you


Cheers!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • File upload required, but no validation happens

This forum was archived on 2017-11-26.