mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
File upload + Rest API
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
<side-menu #actionMenu title="Actions">
|
||||
<div class="p-10">
|
||||
<file-upload accept="{{accept}}" dropaction="inside" droppable="{{droppable}}" target="{{target}}" multi="false" >Choose File</file-upload>
|
||||
|
||||
<button type="button" class="btn btn-success btn-block">
|
||||
Upload <i class="fa fa-plus"></i>
|
||||
</button>
|
||||
|
@@ -27,6 +27,11 @@ import {Page2View} from "./components/page2.view";
|
||||
])
|
||||
export class AppComponent {
|
||||
|
||||
target: string = 'http://192.168.99.100:8080/alfresco/service/api/upload';
|
||||
multi: string = 'true';
|
||||
accept: string ='image/*';
|
||||
droppable: boolean = false;
|
||||
|
||||
constructor(
|
||||
public auth: Authentication,
|
||||
public router: Router
|
||||
|
Reference in New Issue
Block a user