0
  • Hi all i am using MEAN stack in my Web portal with AngularJS as my front-end,
  • In my portal i want to upload user profile image, so i have used uplodcareplatform to upload the images in my portal.

  • My Plunker

  • after chooses the Image we get that image url in upload input, then we need to fetch that url into below input to store in backend. so we tried to get the solution like ng-bind="userimg=img" value="{{img}}" which is not working. please check and update us thanks.

My Code :-

<div>
    <label >Upload Img</label>
  <input ng-model="img" role="uploadcare-uploader" name="content" data-public-key="240426036fd9daf2d723" data-images-only />

</div>

<div>
    <label for="quantity">Fetch above input value in this input</label>
    <input type="text" ng-model="userimg" ng-bind="userimg=img" value="{{img}}">

</div> 
R. Mani Selvam
  • 320
  • 8
  • 36
  • Please post the code in the question body. Links to sites external sites may change in the future, rendering this external information useless in the future. – Claies May 07 '18 at 11:18
  • that being said, the documentation for uploadcare-uploader describes the process you are asking about, in the section for `onUploadComplete`. https://uploadcare.com/docs/api_reference/javascript/widget/#widget-on-upload-complete – Claies May 07 '18 at 11:27
  • @Claies if possible please update my plunker as well to know the exact solution thanks – R. Mani Selvam May 07 '18 at 11:31
  • 1. it's a good idea not to use your public api keys when asking questions on SO 2. you don't have to load both jQuery and full Uploadcare script. Use either jQuery that is bundled with Uploadcare lib or load Uploadcare lib without jQuery: https://uploadcare.com/docs/uploads/widget/install/#types-of-bundles 3. as @Claies have mentioned, don't use external sites to show the code and especially ask to fix that for you – Dmitry Mukhin May 16 '18 at 10:38

0 Answers0