Allow transfering binary files

Created on 13 December 2024, 4 months ago

Problem/Motivation

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.

Steps to reproduce

Attempt transferring binary file and parsing using https://www.drupal.org/project/feeds_xlsx

Proposed resolution

Allow specifying whether transfer mode should be ASCII or BINARY

Remaining tasks

Provide form element that allows defining transfer mode.

User interface changes

New form element, default to ASCII for backward compatibility.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇳🇴Norway zaporylie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024