TOPIC:

Upload 6 months 3 weeks ago #251158

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6086
  • Karma: 3
  • Thanks: 429
Hi,

if I understood you correctly when you have disabled Allow multi HTML5/Flash uploads, then you can upload just one file on upload button

Regards,
Tihana
The following user(s) said Thank You: Luisserafim

Please Log in or Create an account to join the conversation.

Upload 6 months 3 weeks ago #251179

  • Topic Author
  • Luisserafim
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 160
  • Thanks: 0
Hi!



1. I choose to not "Allow multi HTML5/Flash uploads", but its possible anyway...



2. Can we add a pre text to the name of the file? Like sec01xxxxxxx.pdf for each upload button?



Tx in advance
Attachments:

Please Log in or Create an account to join the conversation.

Upload 6 months 3 weeks ago #251182

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6086
  • Karma: 3
  • Thanks: 429
Hi,

1) go to file upload->properties->Validation->check Custom and put this:
function ff_uploadname_validation(element, message)
{
    var elem = document.getElementById('bfFlashFileQueue24313').innerHTML;
var vals = elem.split("canvas");
    if (vals.length > 4) {
        if (message=='') message = element.name+" faild in my test.\n"
        ff_validationFocus(element.name);
        return message;
    } // if
    return '';
    
} // ff_uploadname_validation

Please replace bfFlashFileQueue24313 with ID of the upload queue div (right click to your browser and find ID for this).

If someone upload more than 1 file, and click on submit->error message appears

2) I think so, but I need to get and idea for this LOL :D
I will test it

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

Upload 6 months 3 weeks ago #251191

  • Topic Author
  • Luisserafim
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 160
  • Thanks: 0
Hi!

Sorry but it doesn´'t work becouse the empty upload is possible and we receive the 2 files anyway. After the error and deleting 1 file we receive 2 files...

It is possible to make the button read only after choose 1 file?

This way I can mantain the flash_upload_not_empty.

Sorry for this trouble...

Best regards

Please Log in or Create an account to join the conversation.

Upload 6 months 3 weeks ago #251192

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6086
  • Karma: 3
  • Thanks: 429
Hi,

please try this:
function ff_upload_validation(element, message)
{
    var elem = document.getElementById('bfFlashFileQueue24313').innerHTML;
var vals = elem.split("canvas");
    if (vals.length > 4 || JQuery('#bfFlashFileQueue'+element.id.split('ff_elem')[1]).html() == '') {
        if (message=='') message = element.name+" faild in my test.\n"
        ff_validationFocus(element.name);
        return message;
    } // if
    return '';
    
} // ff_upload_validation

Regards,
Tihana
The following user(s) said Thank You: Luisserafim

Please Log in or Create an account to join the conversation.

Upload 6 months 3 weeks ago #251194

  • Topic Author
  • Luisserafim
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 160
  • Thanks: 0
Ok now it works!...

Thank you so much :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!