TOPIC:

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

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

Yes it is only for pdf files :)

Regards

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

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

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

then same code, just (*.pdf is different):
$files = glob('media/breezingforms/uploads/*.pdf'); // 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
}
Please replace path to path which you want, and from where you want to delete pdfs

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 #279376

  • Topic Author
  • Tohm
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 29
  • Thanks: 0
Thank you very much

It works perfectly!!

Best 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 #279378

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

np, anytime :)

I am glad I was able to help

I will work on your other problem and let you know :)

Regards,
Tihana

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

  • 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!