XylotrechusZ
XylotrechusZ Shell
: /home/mjbynoyq/wazirandsons.pk/wp-content/plugins/brizy/public/editor-client/src/media/ [ drwxr-xr-x ]
import { getImageUid } from "../api";
import { AddImageData, ImageUpload } from "../types/Media";
export const uploadImage = ({
id,
fileName
}: ImageUpload): Promise<AddImageData> =>
getImageUid(String(id)).then(({ uid }) => ({ uid, fileName }));
export const internalAcceptedExtensions = ["webp"];