Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.
This repository was archived by the owner on May 4, 2019. It is now read-only.

image url not working #57

@selvamani-subramani

Description

@selvamani-subramani

when I get the image url through User.first.avatar.url, It generate the url but when I try the url in browser or html, its not showing the image. My model code

has_attached_file :avatar,
    :storage => :dropbox,
    :dropbox_credentials => {app_key: "123445", app_secret: "1234456", access_token: "123456", access_token_secret: "123456", user_id: "191409863"}

  validates_attachment_content_type :avatar, :content_type => ["image/jpg", "image/jpeg", "image/png", "image/gif"]

It is uploading the file to my dropbox successfully. So when I try User.first.avatar.url, its generates url like this https://dl.dropboxusercontent.com/u/191409863/mclarenp1_QY5vmfTw.jpg when I access this, the page shows dropbox error page instead on image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions