dip s

dip s

  • NA
  • 256
  • 81.2k

How to select and save image file to local drive in Cloud application.

Jul 27 2020 7:36 AM
Hello everyone,
I have a cloud application in angular8 and asp.net MVC 5. 
Where user can select image file from his/her local drive and can save that selected imag file to given/predefined path on his/her local drive.
How to do this from cloud application in angular 8?
Thank you in advance.
Any help would be appreciated.
  1.  <div class="row">  
  2.     <div class="col-md-3">  
  3.        <input type="file" style="margin-top: 35px;" (change)="onSelectFile($event)">  
  4.     </div>  
  5.     <div class="col-md-2 text-right">  
  6.          button id="upload" style="display: none; margin-top: 35px;" (click)="UploadImage()">Upload</button>  
  7.     </div>  
  8.  </div>  
  9.  <div class="row">  
  10.     <div class="col-md-7">  
  11.      <br>  
  12.        <div class="row">  
  13.             <div class="content-wrapper">                                                     
  14.               <img [src]="url" id="image" style="width: 100%; height: 100%; object-fit: scale-down;">  
  15.             </div>  
  16.       </div>  
  17.    </div>  
  18. </div>  

Answers (5)