We need a settings form and a cron hook that uploads the exported CSV as needed.

CommentFileSizeAuthor
#4 2978183-04.patch12.37 KBjoshmiller
#2 2978183-02.patch12.64 KBjoshmiller

Comments

joshmiller created an issue. See original summary.

joshmiller’s picture

Status: Active » Needs review
StatusFileSize
new12.64 KB
  1. Updated the fileTo() function to actually work
  2. Created a settings page to manage the FTP settings
  3. Created a cron command that runs once a day, configurable.
  4. Created a not-really-scalable thing that produces a CSV and ftp_puts() it on an FTP server
  5. Confirmed it works.
joshmiller’s picture

Status: Needs review » Needs work
+++ b/autotrader_csv.module
@@ -4,3 +4,97 @@
+            echo "Attempting upload" . PHP_EOL;
...
+              echo "FTP upload has failed!" . PHP_EOL;
...
+              echo "Uploaded {$file['path_to_file']} to $ftp_host as $ftp_filename" . PHP_EOL;

Remove testing echoes.

joshmiller’s picture

Status: Needs work » Needs review
StatusFileSize
new12.37 KB

  • joshmiller committed 3850ea5 on 8.x-1.x
    Issue #2978183 by joshmiller: Upload file to FTP
    
joshmiller’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.