Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- di html:
- <!-- Lampiran 1 -->
- <div class="col-lg-5" style="margin-bottom: 30px; width: 191px; height: 191px; border: 1px solid black; background-image: url('data:image/png;base64,{{ vm.inventory.picture1 }}'); background-size: cover; margin-left: 15px;">
- <input id="lampiran1" type="file" name="Lampiran1" value="" style="display: none;" ng-model='vm.picture1' maxsize="3072" accept="image/*" base-sixty-four-input/>
- <label for="lampiran1" style="cursor: pointer; color: #0059aa; position: absolute; bottom: 10px; right: 10px; box-shadow: 10px; border-radius: 7px; border: 1px solid #0059aa; height: 30px; text-align: center; width: 150px; padding-top: 3px; background-color: white;"><img src="~/images/plus-circle-blue.png" />Tambah Lampiran</label>
- </div>
- di controller:
- Ngeload data hasil upload
- vm.inventory.picture1 = vm.picture1.base64;
- vm.inventory.picture2 = vm.picture2.base64;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement