Can't upload data in any format
See original GitHub issueHow to reproduce the behaviour
Create a new project for text classification. Try to upload a dataset test.jsonl with the next lines:
{"text": "Terrible customer service.", "labels": ["negative"], "meta": {"wikiPageID": 1}}
{"text": "Really great transaction.", "labels": ["positive"], "meta": {"wikiPageID": 2}}
{"text": "Great price.", "labels": ["positive"], "meta": {"wikiPageID": 3}}
File is in UTF-8. Get error "The file could not be uploaded. Maybe invalid format. Please check available formats carefully. "
My Environment
- Operating System: CentOS 7
- Python Version Used: 2.7.5 (Host)
- When you install doccano: 9.04.2020
- How did you install doccano: docker-compose
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
My file is in the required format. Why can't I upload it?
Sometimes when you're trying to upload your translated file, you might receive the following error message: Word2.jpg.
Read more >Fix problems uploading files on the OneDrive website
A file won't upload if it doesn't fit in your available storage space. To see how much space you have remaining or to...
Read more >Reasons why your CSV file isn't importing customer data
Wondering why your CSV file isn't uploading properly? Unfortunately, it could be any number of issues. The good news is that most CSV...
Read more >Tackling the most common errors when trying to import a CSV
If you're working with CSV file format, chances are you will be doing an import at some point. Moving data is, after all,...
Read more >How to Fix Google Drive Cannot Upload Files and Videos ...
There may be an issue with your network instead. This is especially true if the file uploads but gets canceled in the middle...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had this problem uploading a plain text file with only 10 lines of text in a freshly installed pip version of Doccano (1.2.2, running Django 3.1.7). The problem disappeared when I removed the empty newlines from the end of the file!
Indeed, removing the empty newlines (regardless of their position) did the trick. Thanks for the suggestion!