molstar / molstar

A comprehensive macromolecular library

Home Page:https://molstar.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Safari on iOS/iPadOS unable to use ‘Open Files’ and ‘Load Trajectory’ modules

RowenaZireael opened this issue · comments

When clicking ‘Select a file’ in safari, files with .gro, .pdb .xtc .nc .prmtop .nc cannot be selected, so the trajectory cannot be loaded.

These file types are included in the in the filters for the dialog (showing just the "select model file part".

image

Could a be a security permissions issue on your device?

These file types are included in the in the filters for the dialog (showing just the "select model file part".

image

Could a be a security permissions issue on your device?

These file types are included in the in the filters for the dialog (showing just the "select model file part".

image

Could a be a security permissions issue on your device?

I don’t think so. If it was a security issue, pdb formatted files wouldn’t be able to be uploaded to other websites, such as “CHARMM-GUI”. Meanwhile interestingly, only .zip formatted files can be selected in the “Open files” module. This has been tested on iPad Pro M1, iPad Pro M4, iPhone 7 and iPhone 13 with system version iOS/iPadOS16-17, and the issue can be reproduced. It would be nice if this could be solved, to allow trajectory analysis on mobile devices.

Mol* uses a standard file inputs:

  • Single file: <input disabled={this.props.isDisabled} onChange={this.onChangeFile} type='file' multiple={false} accept={this.props.param.accept} />
  • Multiple files:

The accept param is just comma-separated list of extensions, e.g. .ext1,.ext2

Perhaps you could help us troubleshoot this with a simple example of file load that works as expected?

I don't have access to any Apple device, mobile or not, so I can't look into it.

seems a problem with iOS, and its seems to affect all the select file on iPhone. Also, in molstar the input file doesnt bring the default view :
HTML attribute accept - HTML HyperText Markup Language MDN
and directly open the file browser.

When doing the simple test with the browser doesnt select anything but at least all the file can be selected. Which is not the case in molstar where no files can be selected.