开发者

Problem with using Uploadify

I have been trying to implement uploadify in my rails 3.1 app. And I followed the step mentioned here. And here is my code:

{my form code here}
- arr = []
- request.env['HTTP_COOKIE'].each_char{|c| arr.push(c[0].to_s)}
- @session = arr.join("x")
= @sermon_path = sermons_path
:javascript
  $('#sermon_sermon').uploadify({
          uploader: '/uploadify.swf',
          script: '#{@sermon_path}',
          cancelImg: 'cancel.png'开发者_C百科,
          buttonText: 'Browse',
          auto: true,
          scriptData: { 'session_encoded': '#{@session}'}
  })

This did showed uploadify button to select file to upload, but when the file is selected nothing happens. It doesn't even shows the uploaded file and no response is sent back to server. Any help would be highly appreciated.


I newer use uploadify except in a php project but may be this other tutorial can help you. On github there is a working example and an other but with rails 2.3.4 or you can simply try this gem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜