Browse Source

refactor: revert #f3b5bedb17929b44f70cc7a68f4799fe07208cde

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
c1f8bc1356
  1. 4
      packages/nocodb/src/lib/services/attachment.svc.ts

4
packages/nocodb/src/lib/services/attachment.svc.ts

@ -112,3 +112,7 @@ export async function fileRead(param: { path: string }) {
const img = await storageAdapter.fileRead(slash(param.path)); const img = await storageAdapter.fileRead(slash(param.path));
return { img, type }; return { img, type };
} }
export function sanitizeUrlPath(paths) {
return paths.map((url) => url.replace(/[/.?#]+/g, '_'));
}

Loading…
Cancel
Save