- Issue created by @zaporylie
- Merge request !5Issue #3493722 by zaporylie: Allow transfering binary files → (Open) created by Unnamed author
With CSV files, transferring files using the FTP_ASCII mode works great. Unfortunately, some other (non-text) file formats are getting corrupted that way. This happened to me when I was transferring XLS files from the FTP source - the corresponding parser failed to parse the file for unknown reasons. Not knowing if the file itself isn't corrupted or the FTP connection (see 🐛 FTP passive mode must be set only after succesful login Active ), it took me a while to recognize the root cause of the issue - transfer mode being fixed to FTP_ASCII. When I changed it to FTP_BINARY I was able to successfully transfer and parse the file.
Attempt transferring binary file and parsing using https://www.drupal.org/project/feeds_xlsx →
Allow specifying whether transfer mode should be ASCII or BINARY
Provide form element that allows defining transfer mode.
New form element, default to ASCII for backward compatibility.
Active
2.0
Code