@adminforth/upload 2.14.4 → 2.14.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.log CHANGED
@@ -12,5 +12,5 @@ custom/preview.vue
12
12
  custom/tsconfig.json
13
13
  custom/uploader.vue
14
14
 
15
- sent 68,568 bytes received 153 bytes 137,442.00 bytes/sec
16
- total size is 68,006 speedup is 0.99
15
+ sent 68,569 bytes received 153 bytes 137,444.00 bytes/sec
16
+ total size is 68,007 speedup is 0.99
@@ -175,7 +175,7 @@ onMounted(async () => {
175
175
  if (!uploaded.value && props.record?.[previewColumnName]) {
176
176
  if (Array.isArray(props.record[previewColumnName]) && props.record[previewColumnName].length > 0) {
177
177
  const resp = await callAdminForthApi({
178
- path: `/plugin/${props.meta.pluginInstanceId}/get-file-preview-url`,
178
+ path: `/plugin/${props.meta.pluginInstanceId}/get-file-download-url`,
179
179
  method: 'POST',
180
180
  body: { filePath: existingFilePath },
181
181
  });
@@ -175,7 +175,7 @@ onMounted(async () => {
175
175
  if (!uploaded.value && props.record?.[previewColumnName]) {
176
176
  if (Array.isArray(props.record[previewColumnName]) && props.record[previewColumnName].length > 0) {
177
177
  const resp = await callAdminForthApi({
178
- path: `/plugin/${props.meta.pluginInstanceId}/get-file-preview-url`,
178
+ path: `/plugin/${props.meta.pluginInstanceId}/get-file-download-url`,
179
179
  method: 'POST',
180
180
  body: { filePath: existingFilePath },
181
181
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/upload",
3
- "version": "2.14.4",
3
+ "version": "2.14.5",
4
4
  "description": "Plugin for uploading files for adminforth",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",