TOPIC:

File Upload 3 weeks 6 days ago #277268

  • Topic Author
  • hcohl
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 32
  • Thanks: 0
I added a file upload field. Now I want the file (e.g. an image) to be displayed again when I call up the form again under my user name. The other data is also displayed again.

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

File Upload 3 weeks 3 days ago #277298

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3158
  • Karma: 2
  • Thanks: 153
Hi,

I added a file upload field. Now I want the file (e.g. an image) to be displayed again when I call up the form again under my user name. The other data is also displayed again.




I already had the same request, but I think that this is not possible, grab the image and display it in the FORM as other data, but I will again deeply check this and the inform you


If you have more questions, feel free to ask!


Regards,
Mirko

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

File Upload 3 weeks 3 days ago #277299

  • Topic Author
  • hcohl
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 32
  • Thanks: 0
I used to create a form using chronoforms. There was the same problem. The solution for chronoforms looked like this:

// File Upload
// Doing it this way means a user can't just look at any image they want. It's your responsibility to make sure the folder the images are stored in has the correct permissions.

$filename = $this->get("read_entry.entry.fileupload"); echo $filename;
$fileDir = JPATH_COMPONENT_SITE . '/chronoforms/uploads/';

$file = $fileDir . $filename;

if (!empty($filename) && file_exists($file)) {
$b64image = base64_encode(file_get_contents($file));
echo "<div class = 'ui card'><img class = 'ui medium bordered image' src = 'data:image/png;base64,$b64image'><div class = 'content'><div class = 'header'></div></div></div>";
} else { echo "{l:nofile}"; }

?>

Can this perhaps be transferred to breezingforms?

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

File Upload 3 weeks 3 days ago #277300

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3158
  • Karma: 2
  • Thanks: 153
HI,

maybe we can do it with CB, if you make the integration between CB and BF then I think that we can do it over Cb in the list of view.


Can this perhaps be transferred to breezingforms?


thank you for sharing this solution with us, I will see what I can do, and then I will back to you as soon as possible


If you have more questions, feel free to ask!


Regards,
Mirko

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

File Upload 3 weeks 3 days ago #277301

  • Topic Author
  • hcohl
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 32
  • Thanks: 0
how can I integrate CB into Breezingforms. Is there a tutorial? I've watched CB's Basic Video, but I don't understand how to integrate CB into Breezingforms. Do I need to rebuild the form in CB? How can I create a multi-page form in CB?

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

File Upload 3 weeks 3 days ago #277303

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3158
  • Karma: 2
  • Thanks: 153
Hi,

on the link below you can see how to do integration between CB and BF

crosstec.org/en/support/online-documenta...rms-integration.html

you can make one example FORM in the BF and then do the integration and see how works, and see is it is oke for you

If you have more questions, feel free to ask!


to show the image in the List View - you can use the Item Wrap Code of the Upload element e.g:
<?php $value = '{Path to Upload Folder}/'.$value; ?>

Make sure that you change {Path to Upload Folder} to the correct upload folder.

For the Content Template you can use this:
<img src="{Path to Upload Folder}/{UploadElementName:value}">

Again, change {Path to Upload Folder} and UploadElementName to the name of the Upload Element.

This is the solution to show the image in the view.

Regards,
Mirko

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

Last edit: Post by Mirec.
  • Page:
  • 1
  • 2
Time to create page: 0.049 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!