[Bug] Screenshots shared to Obsidian are missing the filename extension

Platform

[x] iOS
[ ] Android

Obsidian Mobile version: v1.2.3 (57)


When taking a screenshot of my iPhone and sharing that to Obsidian, a new file called screenshot is created without extension. It should have the .png extension. Otherwise, the file isn’t recognized by Obsidian and isn’t displayed properly.

I don’t think they are PNG.

I ran file screenshot and got:

screenshot: PNG image data, 828 x 1792, 16-bit/color RGBA, non-interlaced

This is when sharing from an iPhone Xr running the latest iOS 15.5

Btw, it would also be greatly helpful if screenshot were automatically renamed with a timestamp to more easily differentiate, e.g screenshot 2022-07-02T184616Z.png, as macOS does.

1 Like

thanks

Steps to reproduce

Take Screenshot on iOS and share it to Obsidian via Share Sheet.
Obsidian asks to import “Screenshot” into vault → Selected

IMG_0031

Obsidian Messagebox “Success” with Options to insert link into note → link gets inserted.

No image file is listed in File Explorer and the inserted Link is “Screenshot x” without a file extension.

Actual result

Environment

  • Operating system: iOS, Obsidian Version 1.3.1

Additional information

iOS File Manager show the screen shots getting saved without an file extension.

Sharing a picture via Photo to Obsidian works as expected.

Just ran into this using Obsidian v1.4.1.

Everything exactly as @obsequious and @pcs mentioned.

other info:

  • sharing from the iOS screenshot UI is fine to other apps (i tried notion and one drive) and it’s a .png.
  • sharing from photos.app to obsidian works fine (screenshots show a .png and photos a .jpg in obsidian)