Skip to content

Commit 12456fb

Browse files
committed
first commit
1 parent 0aa699c commit 12456fb

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
# AngularUploadMultipleFiles
1+
# Angular multiple Files upload example
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.21.
3+
For more detail, please visit:
4+
> [Angular 8 upload multiple Files example](https://bezkoder.com/angular-multiple-files-upload/)
5+
6+
Spring Boot server for this Angular Client:
7+
8+
> [Spring Boot Multipart File upload example](https://bezkoder.com/spring-boot-file-upload/)
49
510
## Development server
611

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
12+
Run `ng serve --port 8081` for a dev server. Navigate to `http://localhost:8081/`. The app will automatically reload if you change any of the source files.
813

914
## Code scaffolding
1015

src/app/components/upload-files/upload-files.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, OnInit } from '@angular/core';
2-
import { UploadFileService } from 'src/app/services/upload-files.service';
2+
import { UploadFilesService } from 'src/app/services/upload-files.service';
33
import { HttpEventType, HttpResponse } from '@angular/common/http';
44
import { Observable } from 'rxjs';
55

@@ -16,7 +16,7 @@ export class UploadFilesComponent implements OnInit {
1616

1717
fileInfos: Observable<any>;
1818

19-
constructor(private uploadService: UploadFileService) { }
19+
constructor(private uploadService: UploadFilesService) { }
2020

2121
ngOnInit() {
2222
this.fileInfos = this.uploadService.getFiles();

src/app/services/upload-files.service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Injectable } from '@angular/core';
2-
import { HttpClient, HttpRequest, HttpHeaders, HttpEvent } from '@angular/common/http';
2+
import { HttpClient, HttpRequest, HttpEvent } from '@angular/common/http';
33
import { Observable } from 'rxjs';
44

55
@Injectable({
66
providedIn: 'root'
77
})
8-
export class UploadFileService {
8+
export class UploadFilesService {
99

1010
private baseUrl = 'http://localhost:8080';
1111

0 commit comments

Comments
 (0)