I need an Image and PDF File extension

Hello,

There are so many extensions in this community that I can’t keep up. So I decided to post my question and see what extension can do the requirement.

I am looking for an App Inventor extension that would return a selected file extension. For example, (image.png) will return (PNG) and (Document.pdf) will return (PDF)

split the file name with the dot, and select the last item from the list.

1 Like

Yes I know about the split. But what if there is no extension? This will return the first item in the list, which is the file name.

Why the images and pdf files will not have extensions?

after splitting by dot , first check the length of the list and if it’s > 1 then select the 2nd item
Taifun

1 Like


It contains a tool to parse extension name.

Jerin Jacob