TOPIC:

File upload: rewrite existing image 5 years 8 months ago #195001

  • Tihomir's Avatar
  • Tihomir
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 3564
  • Karma: 87
  • Thanks: 289
Hi,

do you want to replace an existing img with the new one , that's what are you trying to achieve?

Kind regards
Tihomir
===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Regards
Tihomir
==========================================
+++ Purchase Professional Support: crosstec.org/en/support/purchase-additional-support.html +++

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

File upload: rewrite existing image 5 years 8 months ago #195004

  • alexxbob's Avatar Topic Author
  • alexxbob
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 19
  • Thanks: 1
Hi,

Yes, i just want to replace an existing image, after a new image is selected/uploaded.

Thank you.

Kind regards,

Alex

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

File upload: rewrite existing image 5 years 8 months ago #195192

  • Tihomir's Avatar
  • Tihomir
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 3564
  • Karma: 87
  • Thanks: 289
Hi,

sry to keep you waiting. I finally found out an alternative way how to achieve that.

Go to your form > advanced > more options > scripts > Initialization Script > click on the custom radio button , and put the following code there :
function ff_FormName_init() {

    jQuery("#bfSubmitButton").click(function () {

        if (JQuery('.bfFlashFileQueueClass').html() != '') {

            JQuery('[name^="cb_delete"]').prop('checked', true);

        }

    });

}

Just make sure to change FormName of the main function to the name of your form.

Try to test this solution and let me know how it went.

I'm waiting for your feedback.

Kind regards
Tihomir
===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Regards
Tihomir
==========================================
+++ Purchase Professional Support: crosstec.org/en/support/purchase-additional-support.html +++

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

File upload: rewrite existing image 5 years 8 months ago #195196

  • alexxbob's Avatar Topic Author
  • alexxbob
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 19
  • Thanks: 1
Hi Tihomir,

I have just one word for you – Perfect!

Thank you very much for this solution and for your time, this is exactly what I wanted to have. You just made my day.

Keep up the good work guys!

Kind regards,

Alex

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

File upload: rewrite existing image 5 years 8 months ago #195201

  • Tihomir's Avatar
  • Tihomir
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 3564
  • Karma: 87
  • Thanks: 289
Great :-),

thank you for your kind words :-).

Let me know if you need further assistance.

Kind regards
Tihomir
===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Regards
Tihomir
==========================================
+++ Purchase Professional Support: crosstec.org/en/support/purchase-additional-support.html +++

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

Last edit: Post by Tihomir.

File upload: rewrite existing image 3 weeks 3 days ago #278857

  • Tohm
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 29
  • Thanks: 0
Hi I know it has been a while since last message but I need to delete only the image wich is replaced.

If you have several image upload fields, your script is good but it removes all existing images instead of just deleting the one which has to be removed.

Do you know how to do just to remove the image just next to the new one?
The only [name^="cb_delete"] which is after the .bfFlashFileQueueClass and not all of them

I hope i'm clear enough as my english is not so good

Regards

Thomas

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

Moderators: ForumSupport
Time to create page: 0.051 seconds

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

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!