How to get File Location using Jasny File Upload

陌路散爱 提交于 2019-12-06 19:32:28

It would be helpful if you posted your entire form.
I have been struggling with the setup at first only to realize that all I had to do was set :multipart => true in the form.

<%= form_for @item, :html => {:multipart => true} do |f| %>

Once you do that, you should be able to get the file path in the controller. I am not sure if that is a solution to your problem though. Again, it would help if you showed more code and what you are currently getting in the params when you submit the form.

DanielJRobles

Check out same question with some answers on a different post: jQuery Ajax File Upload

The post by @Adeel solved my needs.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!