no encoding

This commit is contained in:
Espen Antonsen 2012-04-24 14:53:14 +08:00
parent 25c8c3b5cb
commit 1a2cbff99e

View file

@ -13,7 +13,7 @@ $(document).ready(function() {
max_file_size : '10mb', max_file_size : '10mb',
multipart: true, multipart: true,
multipart_params: { multipart_params: {
'<%= get_session_key %>' : encodeURIComponent('<%= u cookies[get_session_key] %>'), '<%= get_session_key %>' : encodeURIComponent('<%= cookies[get_session_key] %>'),
'authenticity_token' : '<%= form_authenticity_token %>', 'authenticity_token' : '<%= form_authenticity_token %>',
'photo[album_id]' : "<%= @album.id %>" 'photo[album_id]' : "<%= @album.id %>"
}, },