Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Added option to create image URL from the upload response #495

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mudivili
Copy link

@mudivili mudivili commented Jun 12, 2019

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
New tests added? yes
Fixed tickets 0
License MIT

Description
Added a new option, returnURLFromUploadResult to create image URL from the upload response.
Current code expects the server response to be in a certain format.
In my case, server response is generic & used by make other places in the application.
But it is not in files: [{url}] format.

Provided a fallback based solution. If the returnURLFromUploadResult is defined, then upload result will be passed to that function & return value is used to set the url.

--

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants