I am using Rails 3.2, Ruby 2.0 & paperclip 3.5.2
I am trying to upload a video(mpeg) file using ajax & paperclip
note that when I don't use ajax(remote: true) then it works fine.
below are file parameters,
title: kkkkk video: original_filename: m84_1.mpg content_type: video/mpeg headers: "Content-Disposition: form-data; name=\"media_video[video]\"; filename=\"m84_1.mpg\"\r\nContent-Type: video/mpeg\r\n" tempfile: - !binary |- AAAB77+9FADvv70UAO+/vSDvv70AAAHvv70ACABAAAABAAAJ77+9UAAAAQFS 77+977+9Pu+/ve+/ve+/vXLvv73vv71F77+977+977+9FmkK - "D�����\x18F\"�!H���\",�\x14��\x18R\"�!H�4�\",�\x14��JB\"�#\t��B�\x16i\n" - !binary |- RFnvv70hKO+/vUhSIu+/vSMI77+9AAABAivvv70P77+9KSjvv71KUiVy77+9 77+9Re+/vVLvv70777+977+9Ii5S77+977+977+9SlIi77+9KUjvv73vv71S 77+977+977+9SlIi77+9KUjvv73vv73vv70iLlLvv73vv73vv71KUiLvv70p SO+/ve+/ve+/vSIuRhTvv73vv71KUiLvv70o77+977+9XO+/ve+/vSUQAAAB Axvvv70PPu+/ve+/ve+/vVLvv71KUiLvv70pSO+/ve+/ve+/vSJ3KUpE77+9 KUpSIu+/vSlI77+977+9Uu+/vRcpSkRc77+9KRFy77+977+9Re+/vVLvv70X KGUpEXLvv73vv71F77+9Uu+/vRcpSkRc77+9KRFy77+977+9Re+/vVLvv70X KG0pEQAAAAEEE++/vQo= - !binary |- T++/vTnvv73vv71c77+9KRFQ77+977+9XSkRcF0pSO+/ve+/ve+/ve+/vUXv v73vv73vv716B++/vSLvv73vv73vv73vv73vv73vv73vv709KTjvv73vv73v v70E77+9b3Lvv73vv71Afe+/vVLvv70XKUpEWe+/vSkRZgJoH0jvv73vv70b SkRc77+9dSkQ77+9NSlJ77+977+9UC7vv73vv73vv73vv71KC++/ve+/vXB1 Me+/ve+/ve+/ve+/vT5QAAABBQvvv70JZO+/ve+/vWoWSQ7vv70VKO+/vUpS Iu+/vX0pSO+/ve+/ve+/ve+/ve+/vRcoKu+/vWVEXO+/vSkRcu+/ve+/vULv v71S77+977+9XO+/vSho77+9Q2vvv70TSjHvv70Ncu+/vUbvv71F77+977+9 77+977+9DXLvv71dIhrvv73vv73vv73vv70ucXDvv709Au+/vShr77+977+9 Ihtc77+9F0Hvv70N77+9Ue+/vSk4a++/ve+/vSUXKe+/ve+/vTEnThoAAAEG C++/vQlk77+977+9QSfvv71S77+9Sj0iLnpSETsr77+9Gu+/vRcpSkRc77+9 77+9SO+/ve+/ve+/vSIuUXTvv71F77+9Uu+/vRcXSlIi77+9DO+/vSIuUu+/ vXjvv73vv71dKTjvv71KNSUXKUpEXO+/vSkRcD7vv73vv71F77+9Uu+/vRcp SkRcXTHvv71VAO+/ve+/ve+/vQAAAQcL77+9CWTvv73vv71Q77+9SHU077+9 Ze+/ve+/ve+/vUjvv73vv71A77+9UiLvv73vv70pEXPvv73vv73vv70177+9 Fyjvv70K - !binary |- 77+977+977+9KUMnFylKRFzvv70oT++/vVzvv70pOO+/vUpSIu+/vSgdR++/ vVzvv70p77+9U++/ve+/ve+/vSIuH0oT77+9KO+/vUpScXLvv71dG++/vSjv v71lKUnvv73vv70u77+9HRFw77+9G++/ve+/ve+/ve+/ve+/vQAAAAEIC++/ vQlk77+977+9ahZJDiDvv71KLgnvv70pOO+/vTrvv73vv73vv73vv70N77+9 He+/ve+/ve+/vVUpSO+/ve+/ve+/vSIuUe+/vUjvv73vv71077+977+9Re+/ vTUpKO+/ve+/vUpOLlLvv73vv71celDvv71J77+977+9Uu+/vRcpSkRc77+9 Gu+/vRcpGERc77+9NSUXKU51JxcHUu+/vVxF77+9IO+/vXog77+9RAAAAQkL 77+9CGkkOu+/vQ0B77+9dQUdKO+/vUpSIu+/vSh1Ii5S77+9XO+/ve+/vSjv v73vv71U77+977+9KGUiLlLvv73vv73vv71H77+977+9RFzvv70pE++/vRfv v73vv73vv71F77+9Uu+/vRc1KRjvv70PSlJxcu+/vV0J77+977+977+977+9 YixSMDpxcu+/ve+/ve+/ve+/ve+/vUXvv71nKxTvv70P77+977+977+9Me+/ vTzvv71neO+/vQAAAQo= - \v�\t
9\x0E�\v$�H�\\"R��\"�(~�N��Q�\x11r��J�)H��R�\x17#\n.......} `
any help would be great appreciated.
Aucun commentaire:
Enregistrer un commentaire