Page 1 of 1
CSV Transfer
Posted: Thu May 05, 2022 9:55 am
by ricklincs
I use the CSV Transfer to pull daily files into a table.
It's great and a useful tool. I am trying to look into adding a Delete File after import, which will delete the file from the temp directory after it has been sucessfully imported. Any pointers would be gratefully received.
nubuildercsvimport.jpg
Re: CSV Transfer
Posted: Thu May 05, 2022 10:28 am
by kev1n
Hi,
For the moment, you can solve it like this:
If you add this line in uncommon.php, in the function nuFromCSV(), the csv file will be deleted after the import.
However, it will be deleted in any case.
unlink.png
Maybe I can add a checkbox "Delete after Import" so that the file will be deleted after a successful import.
Re: CSV Transfer
Posted: Thu May 05, 2022 10:44 am
by ricklincs
Thanks Kev1n, I will try this for the moment, but yes a checkbox "Delete after Import" woukd be the best way. Quick reply from yourself as ever.
Re: CSV Transfer
Posted: Thu May 05, 2022 11:28 am
by ricklincs
Thanks Kev1n that worked a treat.
Re: CSV Transfer
Posted: Thu May 05, 2022 5:26 pm
by kev1n
This has now been added. (Update required)
delete_after_import.png