SammyLin / redactor-rails

This repo is deprecated. Please check out official gem for Redactor 2. https://github.com/Redactor2/redactor2_rails
MIT License
389 stars 254 forks source link

Change image upload path and read images from user gallery folder #79

Open Allanon29 opened 10 years ago

Allanon29 commented 10 years ago

Seems that I've finally made the image uploads work. I would like to customsize the upload path and include the images which the members of my site already uploaded to their gallery (Gallery model). Redactor now places the images inside system/redactor_assets/pictures But I want it to upload to uploads/galleries/current_user_id And also I would like Redactor to read the members Gallery images from that folder so they can place it inside their blogposts when clicking on Choose option in the image popup window.

I can change the path in the Carrierwave uploader but since there is no relationship between members and the picture model I doubt it would work. Also is it enough to just change the path in Carrierwave or I need to change it elsewhere too to make this work?

Best Wishes, Matt