File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
core/components/modai/src/Processors/Download Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Image extends Processor {
14
14
public function process () {
15
15
$ url = $ this ->getProperty ('url ' );
16
16
$ image = $ this ->getProperty ('image ' );
17
- $ field = $ this ->getProperty ('fieldName ' , '' );
17
+ $ field = $ this ->getProperty ('field ' , '' );
18
18
$ namespace = $ this ->getProperty ('namespace ' , 'modai ' );
19
19
$ resource = (int )$ this ->getProperty ('resource ' , 0 );
20
20
$ mediaSource = (int )$ this ->getProperty ('mediaSource ' , 0 );
@@ -74,7 +74,10 @@ public function process() {
74
74
75
75
$ source ->createObject ($ filePath [0 ], $ filePath [1 ], $ image );
76
76
77
- return $ this ->success ('' , ['url ' => $ filePath [0 ].$ filePath [1 ]]);
77
+ return $ this ->success ('' , [
78
+ 'url ' => $ filePath [0 ].$ filePath [1 ],
79
+ 'fullUrl ' => $ source ->getObjectUrl ($ filePath [0 ].$ filePath [1 ])
80
+ ]);
78
81
}
79
82
80
83
private function createFilePath ($ path , $ resource ): array
You can’t perform that action at this time.
0 commit comments