Open gallowayevan opened 1 year ago
Could you please share the csv file? Or a redacted one?
Here is a notebook with a csv that had this issue: https://observablehq.com/d/513a07515763686a For reasons I don't understand, the file loaded as a database cell successfully (the error went away) as soon as I published the notebook to Public(unlisted). This still seems odd, and I think you will see the error if you download the csv and reattach to a clean notebook.
In any case, it is also an unexpected behavior, even if it worked correctly. It diverges from the behavior of "Copy usage code" and it's not clear to why a database cell would be the default here. Thanks for looking into this.
Best, Evan
@gallowayevan Can you confirm that the error disappears if you simply reload the notebook?
I suspect that what happens here is:
Edit: A quick way to test this is two create two cells:
viewof file = html`<input type="file">`
file.type
and then select a file.
Yes - a reload does the trick.
When I attach a csv to a notebook and click "Insert into Notebook" I get this error: Error: unsupported file type: application/vnd.ms-excel. If I then use, "Copy Usage Code" with the same file, it works fine.
To Reproduce
Expected behavior The same behavior as "Copy Usage Code" without the copy and paste step.
Screenshots
Desktop (please complete the following information):