File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
plugins/qeta-backend/src/upload Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,12 @@ class DatabaseStoreEngine {
13
13
database : QetaStore ;
14
14
backendBaseUrl : string ;
15
15
qetaUrl : string ;
16
- storageType : string ;
17
16
18
17
constructor ( opts : Options ) {
19
18
this . config = opts . config ;
20
19
this . database = opts . database ;
21
20
this . backendBaseUrl = this . config . getString ( 'backend.baseUrl' ) ;
22
21
this . qetaUrl = `${ this . backendBaseUrl } /api/qeta/attachments` ;
23
- this . storageType =
24
- this . config . getOptionalString ( 'qeta.storage.type' ) || 'filesystem' ;
25
22
}
26
23
27
24
handleFile = async ( file : File ) => {
@@ -30,7 +27,7 @@ class DatabaseStoreEngine {
30
27
31
28
const attachment = await this . database . postAttachment ( {
32
29
uuid : imageUuid ,
33
- locationType : this . storageType ,
30
+ locationType : 'database' ,
34
31
locationUri : locationUri ,
35
32
extension : file . ext ,
36
33
mimeType : file . mimeType ,
Original file line number Diff line number Diff line change @@ -14,16 +14,13 @@ class FilesystemStoreEngine {
14
14
database : QetaStore ;
15
15
backendBaseUrl : string ;
16
16
qetaUrl : string ;
17
- storageType : string ;
18
17
folder : string ;
19
18
20
19
constructor ( opts : Options ) {
21
20
this . config = opts . config ;
22
21
this . database = opts . database ;
23
22
this . backendBaseUrl = this . config . getString ( 'backend.baseUrl' ) ;
24
23
this . qetaUrl = `${ this . backendBaseUrl } /api/qeta/attachments` ;
25
- this . storageType =
26
- this . config . getOptionalString ( 'qeta.storage.type' ) || 'filesystem' ;
27
24
this . folder =
28
25
this . config . getOptionalString ( 'qeta.storage.folder' ) ||
29
26
'/tmp/backstage-qeta-images' ;
@@ -45,7 +42,7 @@ class FilesystemStoreEngine {
45
42
46
43
const attachment = await this . database . postAttachment ( {
47
44
uuid : imageUuid ,
48
- locationType : this . storageType ,
45
+ locationType : 'filesystem' ,
49
46
locationUri : imageURI ,
50
47
extension : file . ext ,
51
48
path : newPath ,
You can’t perform that action at this time.
0 commit comments