> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: getFileInfo(fileUrl: string) # Method package: wixMediaBackend # Method menu location: wixMediaBackend --> MediaManager --> getFileInfo # Method Link: https://dev.wix.com/docs/velo/apis/wix-media-backend/media-manager/get-file-info.md # Method Description: Gets a file's information from the Media Manager by `fileUrl`. The `getFileInfo()` function returns a Promise that resolves to information about the specified file. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get a file's information ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { mediaManager } from 'wix-media-backend'; export const getFileInfo = webMethod(Permissions.Anyone, async (fileUrl) => { return mediaManager.getFileInfo(fileUrl); }); /* Returns a promise that resolves to: * { * "fileUrl": "wix:image://v1/f6c0f9_tg439f4475a749e181dd14407fdbd37e~mv2.jpg/original-name.jpg#originWidth=300&originHeight=300", * "hash": "Ew00kXbu4Zt33rzjcWa6Ng==", * "sizeInBytes": 51085, * "mimeType": "image/jpeg", * "mediaType": "image", * "isPrivate": false, * "iconUrl": "wix:image://v1/f6c0f9_tg439f4475a749e181dd14407fdbd37e~mv2.jpg/original-name.jpg#originWidth=300&originHeight=300", * "parentFolderId": "2bf470f5be194b319cdb2accc3278ff9", * "originalFileName": "original-name.jpg", * "sourceUrl": "https://somedomain.com/img/original-name.jpg", * "width": 300, * "height": 300, * "labels": [ * "Blue", * "Butterfly", * "Turquoise" * ], * "opStatus": "READY" * } */ ``` ---