Rails 3 + Mobile + Fileuploading

I'm trying to set up a fileuploader from a mobile version of my webpage. I did this Mime::Type.register_alias "text/html", :mobile

in my mimetypes file, but "file_field" doesn't send the data when the format is mobile. I already tested It.

Any suggestions about what am I missing here? something about the format? the way rails manage file uploading?

Thanks in advance.

Answers


well... this problem was associated with other issue. The problem was that mobile requests are being executed via AJAX and I'm sending a File here. So, files cannot be sent via AJAX in a native way. I had to use a library for that (Jquery Forms).

Hope this help other people. Cheers,


Need Your Help

How to check null class in C++

c++ class null

How do I check if a class is null or not in C++? Suppose I have class Line:

Using glob on a directory above current?

php glob

Currently I have a script running to grab all the images in a directory based on ending with "154x154.jpg". Basically what I'm doing is going through a gallery directory and looking for all the

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.