New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to import servers in Firefox for Android #1130
Comments
I have just tested importing servers in Firefox for Android, and it works just fine for me. When you say |
@acelaya The file was shown but was disabled, which look like this: |
Do you have other files in the same directory that are not showing? If that's the case, it could mean the filter is in fact working, but Firefox is missing some permission to be able to pick files. I was promoted with a couple of permission-granting confirmations when I tried to import servers. |
Other files were shown as well, and like the CSV file, were disabled. For the permissions, it was granted before. |
Ok, then it sounds like it's in fact not matching. What Android and Firefox versions are you using? Is it a stock Android, or a brand-modified version? (Xiaomi, Samsung, etc.) |
Android 14 (with One UI 6), Firefox Nightly 126 (also tested on Firefox Beta 119, not working as well) |
Can you share a copy of that CSV file with me? Feel free to edit it to obfuscate API keys and URLs. Also, how did you generate it? I see it doesn't have the default |
Never mind. I was able to reproduce it by renaming In fact, I noticed that using the "Files" Android app, the file shows a CSV/grid/Excel icon when I have just exported it, but if I rename it, it switches the icon to "plain text". |
I noticed that, in Chrome for Android, the By doing a quick search, it seems the recommended way to restrict a file input for CSV files in a cross-browser way is the one you suggested, so I'll just go with that approach and do a bit of testing. |
Well, it is not as easy as it seemed 😅 https://caniuse.com/?search=input%20type%20file%20accept Basically, this feature is well supported in desktop browsers, but effectively "not supported" in mobile browsers. |
shlink-web-client version
4.1.0
How do you use shlink-web-client
https://app.shlink.io
Current behavior
*.csv files not selectable. Firefox for Android seems not recognised
text/csv
mime type.shlink-web-client/src/servers/helpers/ImportServersBtn.tsx
Line 90 in c75a3a4
Expected behavior
Change to
text/csv,.csv
would probably make it works.Minimum steps to reproduce
The text was updated successfully, but these errors were encountered: