-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This enhancement give the images API the ability to create images from URLs. A simple check determines whether or not the attachment parameter is a URL. If it is a URL, OpenURI is used to download the image and it subsequently undergoes the standard post upload processing (via paperclip). If it is not a URL, then the attachment parameter is handled in the same manner it was prior to this commit.
Showing
2 changed files
with
39 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters