mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-05-26 11:40:27 -04:00
fix: support CSV/TXT upload and add validation for Plan to Eat import (#6360)
Plan to Eat exports CSV or TXT files directly, but the importer only accepted ZIP archives. This caused a silent failure when users uploaded CSV files. - Extend plantoeat_recipes() to detect ZIP vs CSV/TXT by magic bytes and process raw CSV/TXT files directly without requiring a ZIP wrapper - Add _validate_archive() to return a clear error report entry when the uploaded file is neither a ZIP nor valid UTF-8 text - Update frontend file input to accept .zip, .csv, and .txt - Update i18n description to mention all accepted formats - Add plantoeat.csv test fixture and integration tests for CSV import and invalid file type rejection
This commit is contained in:
@@ -427,7 +427,7 @@
|
||||
"mealie-text": "Mealie can import recipes from the Mealie application from a pre v1.0 release. Export your recipes from your old instance, and upload the zip file below. Note that only recipes can be imported from the export.",
|
||||
"plantoeat": {
|
||||
"title": "Plan to Eat",
|
||||
"description-long": "Mealie can import recipies from Plan to Eat."
|
||||
"description-long": "Mealie can import recipes from Plan to Eat. Upload a ZIP archive, CSV, or TXT file exported from Plan to Eat."
|
||||
},
|
||||
"myrecipebox": {
|
||||
"title": "My Recipe Box",
|
||||
|
||||
Reference in New Issue
Block a user