on 04-15-2007 12:23 PM
I am trying to upload a file but I don´t know why it is not working well. The problem is "undefined method `read' for "C:
1266.pdf":String". It always takes me the file as String not as hybrid. I think the problem is related to :multipart but my sentence seems to be correct.
<%=form_tag({:action => 'create'},:multipart => true)%>
Thanks for your help in advance
Hello,
have you tried Google and found:
http://wiki.rubyonrails.org/rails/pages/HowtoUploadFiles
?
Regards
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, in fact I have tried an example but my problem is the following :
undefined method `read' for "importante.txt":String
The "importante.txt" is not converted into file type and stays as String. I want to know why it is difficult to read the content of the file.
I suppose the problem could be because of :multipart tag but I do not know how to resolve it. I have apply son patches to resolve bugs in rails but the problem is still there.
Thanks for your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.