-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is not an Excel file #67
Comments
Looks like this works:
then I if there's an easier way, let me know! |
Roo currently uses the extension of the path to check the type of the file. You can ignore type check errors by passing file_warning: :ignore to Excel: Excel.new(xls_file.tempfile.to_path.to_s, file_warning: :ignore) |
nice, Thx! |
I did what's recommened above for a .xls file (using roo-xls) and it worked. but now im running into this: |
From what I can tell this is probably caused by a file that isn't actually an Sources: |
I think there's something very simple that I don't see going on here that's wrong. Heres My jquery code that's uploading the file:
Then in the controller, where I call
import = Excel.new(xls_file.tempfile.to_path.to_s)
, I get an error likeTypeError (/var/folders/rd/58f3hjw10lv09q_8hsl0l7zn1mn1rf/T/RackMultipart20130909-36782-r1bv5n is not an Excel file)
What am I missing here?
The text was updated successfully, but these errors were encountered: