“Invalid file” error when try to upload a CSV file
-
I’m getting an “Invalid file” error from your plugin when I try to upload a CSV file.
I’m using your version 5.0, WordPress 4.8.1, and PHP 5.4 on a Godaddy-hosted web site.
Since I’m on Macintosh, I have tried the following combinations of CSV files:
(a) Mac line endings (CR only), all fields surrounded by double-quotes
(b) Mac line endings (CR only), only those fields containing commas surrounded by double-quotes
(c) Windows line endings (CRLF), all fields surrounded by double-quotes
(d) Windows line endings (CRLF), only those fields containing commas surrounded by double-quotes
but I get that “Invalid file” error every time.What am I missing?
Here are the contents of (a) (and (c)):
—
“Character”,”Actor”,”Age”,”Description”
“John Boy”,”Mark Smith”,”5-50″,”Older than his years, John Boy yearns to move to the big city.”
“Big Mama”,”Bessie Smith”,”50-100″,”Classic mother figure, Big Mama takes care of her boys and her husband, defending her family against all odds.”
“Paw”,”Robert Crighton”,”43-96″,”When in the course of human events it becomes necessary to semper fidelis.”
—And here are the contents of (b) (and (d)):
—
Character,Actor,Age,Description
John Boy,Mark Smith,5-50,”Older than his years, John Boy yearns to move to the big city.”
Big Mama,Bessie Smith,50-100,”Classic mother figure, Big Mama takes care of her boys and her husband, defending her family against all odds.”
Paw,Robert Crighton,43-96,When in the course of human events it becomes necessary to semper fidelis.
—I’ve read your https://www.pearlbells.co.uk/install-csv-to-webpage page carefully (including all the comments), but don’t see this issue addressed.
Also, I’m confused regarding the name of your plugin. Is it:
– “CSV to Responsive Tables,” which is the text at the top of this page?
Or is it
– “CSV to Webpage,” which matches the “slug” in the address of this page?Thanks!
Martin
- The topic ‘“Invalid file” error when try to upload a CSV file’ is closed to new replies.