Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

File Object / PHP

Questions related to using nuBuilder Forte.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: File Object / PHP

Unread post by admin »

toms,

OK I get it now.

It sounds like your scenario is more customised than what nuBuilder Forte is made for.

You may have to create your own functions to manage it.

Sorry, that's probably not what you wanted to hear.

Steven
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: File Object / PHP

Unread post by toms »

Steven,

The solution is very simple: Before calling nuSendEmail(), I will create a copy of the file. In this way, even if the file is then deleted by nuSendEmail(), I still have a copy of it.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: File Object / PHP

Unread post by admin »

OK
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: File Object / PHP

Unread post by toms »

admin wrote:OK
Well... even though I have a solution, maybe you can consider my suggestion to change the behaviour of nuSendEmail()-
(Or to add a parameter like "delete_source_files_after_sending" with true --> unlink() and false --> don't delete the source files )
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: File Object / PHP

Unread post by admin »

.
Locked