0
我想使用Paperclip导入一个excel文件并将其保存到S3,然后使用Roo gem提取和分析。使用Paperclip,S3和Roo导入excel文件
当我尝试这样的事:
@excel = Excel.new(@manifest.attachment.url)
我得到以下错误:
http://s3.amazonaws.com/mybucket/attachments/22/manifest.xls?1343835058 is not an Excel file
我猜对文件名末尾附加时间戳导致袋鼠不去想这是一个Excel文件。
我该如何解决这个问题?
我可以验证这对我有效。 – J3RN 2014-03-08 20:15:23