Problem/Motivation

My CSV wasn't being recognised as such on the server (locally was fine so mime_content_type must be behaving differently).

Steps to reproduce

Upload a CSV (PHP Version 8.0.11) and you'll get the 'Failed to open the file' message.

Proposed resolution

Updated the check.

Remaining tasks

Review.

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#2 3255009-csvs_not_detected-2.patch521 byteskimberleycgm
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kimberleycgm created an issue. See original summary.

kimberleycgm’s picture

StatusFileSize
new521 bytes
kimberleycgm’s picture

Status: Active » Needs review
vuil’s picture

Version: 2.0.5 » 2.0.7
Related issues: +#3161374: fails to open a file with mimetype = "text/xml"
vuil’s picture

Issue tags: +PHP 8.1

  • vuil committed f14a567 on 2.0.x
    Issue #3255009 by kimberleycgm, vuil: CSVs not detected properly
    
vuil’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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