1.0.40 • Published 7 years ago

@rr2/file-upload v1.0.40

Weekly downloads
1
License
GPL-3.0
Repository
bitbucket
Last release
7 years ago

Note: This package should be used together with backend package: rokandmat/photo-manipulator from https://bitbucket.org/rokmat/photo-manipulator

###Installation:

  1. Run npm install @rr2/file-upload
  2. In your laravel backend: composer require rokandmat/photo-manipulator
  3. Follow rokandmat/photo-manipulator README.md installation instructions
  4. Import file-upload module (see below)
@NgModule({
    imports: [
        FileUploadModule.forRoot({
            photoManipulatorUrl: '<url to photo manipulator>'
        }),
        ...
    ],
    ...
})

###Usage:

<app-file-upload
        [uiConfig]="{}"
        [config]="{}"
        (uploadComplete)="handleUploadComplete($event)"
></app-file-upload>
@Input() uiConfig: FileUploadUiConfigInterface
previewPerRownumberAmount of images prev
@Input() config: FileUploadUiConfigInterface
return_type'id' or 'path'If 'id' is set it means that images will be saved to database by backend and only saved element ID references will be returned. If 'path is selected' it means that array with images relative paths will be returned, no saving to database done
onlyImagesbooleanAllow upload other files but images
directorystring (optional)Where files should be put after base path.
filesPerPostChunkstring (optional)How many files should be sent to backend in one POST request
prefixstring (optional)Prefix to add to filename
suffixstring (optional)Suffix to add to filename
@Output() uploadComplete: FileUpload[]
pathsobject[]Data where files were saved on server
......See FileItem.ts
1.0.40

7 years ago

1.0.39

7 years ago

1.0.38

7 years ago

1.0.37

7 years ago

1.0.36

7 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.33

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago