I wanted my users to have the ability to upload an image via de Angular App that I provide for them.
So let me explain the process.
First, of course, there's the HTML that needs to be added to support File Uploads.
You can add these to your app.component.html file.
Then, once it is submitted it needs to be handled by your Angular app, in the app.component.ts file.
Then it gets transmitted to your rest service on the backend.
And that stashes it into the database using JPA.
All done.
References
- StackOverflow - Angular File Upload
- https://stackoverflow.com/questions/47936183/angular-file-upload
- StackOverflow - Angular 5: How to upload an image
- https://stackoverflow.com/questions/48343853/angular-5-how-to-upload-an-image?noredirect=1&lq=1
No comments:
Post a Comment