Hey guys, I'm trying to import a csv file with new users info but every time I try to import I get:

# Could not find the csv file ''
# Could not get data, the file '' is either empty or has incompatible line endings.

I have tried browsing for the file, FTPing the file, both at the same time and at first it shows me the csv fields and I match to their Drupal field, but once I click on Next, this message appears, any idea what I can be doing wrong?

My csv file is formatted the following way:

"Username","Password","EMail"

Comments

jfha73’s picture

Title: Not working » Update

When I install this module to a server running Linux, it doesn't work, but when I install it to a server running Windows it does, would you guys please look into this, the way it reads the file should be transparent.

robert castelo’s picture

Sounds like you've saved the file with some line endings that your Linux system doesn't like.

jfha73’s picture

That's exactly my point, if windows uses \n\r and Linux uses \n for ending lines, the module should catch it automatically, otherwise what's the purpose of having a multi-platform environment.

robert castelo’s picture

Title: Update » Detect Line Endings
Priority: Critical » Major

Making this more descriptive than 'Update'.

Request is to detect environment Drupal is running on and handle line endings correctly.

gisle’s picture

Version: 6.x-2.3 » 7.x-3.2
Issue summary: View changes
Status: Active » Closed (outdated)

I've tested the latest stable version with Unix (\n), MS Windows (\r\n) and MacOS (\r) line endings. All work.

Must have been fixed sometimes during the last 8 years.