In my project i am using paper-clip and deployed to heroku, heroku not allows the file storage but to use aws normally, i don’t want to spend money so i can use drop box storage which will gives 2gb free storage space. So i am using paper-clip with drop box with library papercklip-dropbox gem, steps to follow are given below. Include gem “paperclip-dropbox” in your gem file Run the command $bundel install Create drop box api app in https://www.dropbox.com/developers/apps and give read write permissions it gives you the App key and App secret which will used in further configeration Generate the other required details using available details, run the rake task to generate other details “ $ rake dropbox:authorize APP_KEY=your_app_key APP_SECRET=your_app_secret ACCESS_TYPE=your_access_typ “, this command will generate the access_token, access_token_secret, user_id Create dropbox_config.yml file in config folder and place all keys got in previous steps app_key
Comments
Post a Comment