TOPIC:

No save PDF in the upload directory 1 week 5 days ago #279352

  • Topic Author
  • Tohm
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 29
  • Thanks: 0
Hi anyone,

Do you know how to NOT save the admin and mailback PDF in the upload directory?
I don't try to change the directory, simply just not to save the pdf on the server?

Any idea?

Regards

Thomas

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

No save PDF in the upload directory 1 week 5 days ago #279354

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

you want to have pdf in mails, but don't wont to save it in server?

Regards,
Tihana

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

No save PDF in the upload directory 1 week 5 days ago #279358

  • Topic Author
  • Tohm
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 29
  • Thanks: 0
Hi Tihana,

That's exactly that.

Is it possible?

Regards

Thomas

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

No save PDF in the upload directory 1 week 5 days ago #279359

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

Please go to your form->Advanced->More options->Submit pieces->End Submit->check Custom and put this:
$files = glob('media/breezingforms/uploads/*'); // get all file names who should be saved in that path, please replace this path with path where your pdfs are saved on server
foreach($files as $file){ 
if(is_file($file))
unlink($file); // delete file
}
After that you will not have a files on server

Please replace path with path where your pdfs are saved

Regards,
Tihana

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

No save PDF in the upload directory 1 week 5 days ago #279369

  • Topic Author
  • Tohm
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 29
  • Thanks: 0
Hi

Thank you for your answer.

It will only remove pdf files? not uploaded images?

Regards

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

No save PDF in the upload directory 1 week 5 days ago #279370

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

did you find path where pdf is saved?

If you use this path:
media/breezingforms/uploads/*
then all (* means all) from this folder will be removed

But if you want only pdf then instead of * I need to provide you with the code for only .pdf

Regards,
Tihana

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

Last edit: Post by tihana.krivic.
  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.048 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!