espen / balder

Balder - Open source Ruby on Rails photo gallery
http://balderapp.com
MIT License
263 stars 97 forks source link

Cannot upload pictures #28

Closed rsilvestre closed 12 years ago

rsilvestre commented 12 years ago

Using the last build with ruby 1.9.2-p290 ans rails 3.1.2

When i try to upload picture, I have this kind of message in my console :

Started POST "/photos" for 127.0.0.1 at 2011-11-20 10:47:29 +0100 Processing by PhotosController#create as HTML Parameters: {"Filename"=>"024bb00f9e1f7cd64e0b24d15697e9d6.jpg", "authenticity_token"=>"TWa8mjcchMFSUgc8Rpz03lrjJXOCpHgGl6gK55jJ7Mk=", "name"=>"024bb00f9e1f7cd64e0b24d15697e9d6.jpg", "_balder_session"=>"BAh7CUkiD3Nlc3Npb25faWQGOgZFRkkiJTM2NDQxYjJkMmM0ZDNhMjZjNDJhOGQ3NjMzOTdmNTBiBjsAVEkiEF9jc3JmX3Rva2VuBjsARkkiMVRXYThtamNjaE1GU1VnYzhScHowM2xyakpYT0NwSGdHbDZnSzU1ako3TWs9BjsARkkiFXVzZXJfY3JlZGVudGlhbHMGOwBGSSIBgDI1NDg2NWU4OGMzMDEzNzlkODhmOWY0YjRkMDZkMjQzOTFhOTRiMjY1NzE1MzA3ZDM2ZDEwM2ZhNjE4NmJmZjJhNGRjM2Y4YjA3NGIxMDQxNjFlZjliOTY0OThmZGJmZjMwZDVkYjY4NTJlMDI0ZjE3ZTA4Y2U4MWYzYTViNmNkBjsAVEkiGHVzZXJfY3JlZGVudGlhbHNfaWQGOwBGaQY%253D--df6f10472100e38a5579f2729c7ace19500c8bcd", "photo"=>{"album_id"=>"1"}, "file"=>#<ActionDispatch::Http::UploadedFile:0x007f93bf007d78 @original_filename="024bb00f9e1f7cd64e0b24d15697e9d6.jpg", @content_type="application/octet-stream", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"024bb00f9e1f7cd64e0b24d15697e9d6.jpg\"\r\nContent-Type: application/octet-stream\r\n", @tempfile=#<File:/var/folders/jt/0vpxzc750zx3c292wzmmw7f80000gn/T/RackMultipart20111120-5273-9c4g49>>, "Upload"=>"Submit Query"} WARNING: Can't verify CSRF token authenticity User Load (0.7ms) SELECT users.* FROM users Redirected to http://localhost:3000/login Completed 302 Found in 180ms

espen commented 12 years ago

Can you check which uploader plupload is using? flash, html5, or other?

rsilvestre commented 12 years ago

I'm using the original flash uploader

espen commented 12 years ago

This is probably due to Balder not being tested with Rails 3.1 yet, but I will look into it. Thanks for reporting the issue.

tggo commented 12 years ago

flash not send correct session to rails u can change in puploader to html5 in file app/views/photos/upload.html.erb to runtimes : 'html5,browserplus,silverlight,gears,flash'

lkkadiri commented 12 years ago

Cannot still upload pictures.

Error: Completed 500 Internal Server Error in 313ms (Views: 1.4ms | ActiveRecord: 3.1ms)

Using Flash, html5 in the pluploader throws an HTTP error and errors 2032 and 2038 .

espen commented 12 years ago

Have you tried using Rails 3.0.10 as specified in the Gemfile?

lkkadiri commented 12 years ago

Yes im using rails 3.0.10

Doesnt seem to upload any pics. CLoned a fresh copy and made sure its rails 3.0.10 still get the 500 Internal server error

lkkadiri commented 12 years ago

It had something to do with the image_science gem. i commenetd it out and it works fine.

espen commented 12 years ago

Great. It is already commented out in the release though. I recommend the default mini_magick unless you really need to do more complex image manipulation.

lkkadiri commented 12 years ago

Thanks a lot Espen.