TOPIC:

Sending a file from a form to an integrated phpmyadmin table 1 month 2 weeks ago #240904

  • Topic Author
  • lizcoutu@gmail.com
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 6
  • Thanks: 0
Hi,

I need to know how I can send a file from a form (from the file uploader) to an integrated phpmyadmin table, so that the table receive the file as a BLOB.

Right now I have this form: teabee.org/portal/en/subscribe-a-game
but the third element isn't working.

Thanks,

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

Sending a file from a form to an integrated phpmyadmin table 1 month 2 weeks ago #240941

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9069
  • Karma: 167
  • Thanks: 737
Hi,

since by default the value of an upload holds the path to the uploaded file, you could try this:

In the integrated field, click on "code" and try using this:
if(file_exists($value)){
  $value = file_get_contents($value);
}

This works only if it is a single upload. For multiple uploads you might need to iterate over $value like it is a 1-dimensional array, each index holding its own value (=path).

Regards,
Markus

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

Sending a file from a form to an integrated phpmyadmin table 1 month 2 weeks ago #240995

  • Topic Author
  • lizcoutu@gmail.com
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 6
  • Thanks: 0
Hi Markus,

Thanks for your reply.
I did put the codes included in your reply.

As it changes nothing for now, unfortunatly, would you think it has to do with the advanced settings of the element?

When I test the form, none of my entries are showing the BF registry.

Thank you,

Elisabeth

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

Sending a file from a form to an integrated phpmyadmin table 1 month 1 week ago #241024

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9069
  • Karma: 167
  • Thanks: 737
Hi,

alright, maybe it will be easier for you if I check that out directly?
If yes, then please send me temporary admin access to your site to: mbopp@evolutio-it.com

I sometimes have to test things on-site to make sure everything works because every setup is different (what works with my testforms doesn't necessarily cover all the things going on in customer forms).

Regards,
Markus

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

Sending a file from a form to an integrated phpmyadmin table 1 month 6 days ago #241665

  • Topic Author
  • lizcoutu@gmail.com
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 6
  • Thanks: 0
Hi,

I just sent en email concerning this!

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

Sending a file from a form to an integrated phpmyadmin table 4 weeks 1 day ago #242276

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9069
  • Karma: 167
  • Thanks: 737
Hi,
couldn't log into your admin. Sent you an email.

Regards,
Markus

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.052 seconds

July Sale!

Discounts for all of our extensions + support. Ending July 31st!

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!