Atm I'm saving simple strings in local storage. But the problem is now I want to save videos/images to local storage. But since localStorage only supports strings I don't see how this would be possible.
If you could provide with code example that would be good!
<form #userForm = "ngForm" (ngSubmit)="onSubmit(userForm.value)">
<div class="form-group">
<label for="exampleInputFile">File input</label>
<input type="file" class="form-control-file" id="image" aria-describedby="fileHelp" accept="image/*, video/*" ng name="image" ngModel>
<small id="fileHelp" class="form-text text-muted"></small>
</div>
</form>
add-profile.components.ts
onSubmit(value: any){
localStorage.setItem(this.getId(), JSON.stringify(value));
}