UnityNativeFilePicker
UnityNativeFilePicker copied to clipboard
Cannot select freshly downloaded file from "Downloads". Huawei nova 3i.
- Download some file
- Open the file picker from your application
- Go to quick folder "Downloads"
- The downloaded file is grey and cannot be selected.
- Find the same file going through local storage to Downloads folder.
- The file can be selected.
- Rename file from the file explorer on the device
- Go back to your application
- Go to quick folder "Downloads"
- File can be selected
- Rename back to original name
- Cannot be selected.
Could not reproduce the issue for Samsung s10+ though. I understand this is something specific about Huawei storing the files, but maybe you've got idea how to deal with it? If some percent of my users will face this issue, I'll have to instruct them with this clumsy workaround which is not really desirable.
Thanks in advance.
Thank you for the detailed instructions. Unless the file's extension changes when you rename it, I honestly have no idea why this issue is occurring. At the moment, I don't know how we can resolve this weird issue, unfortunately.
P.S. The file picker user interface is created by the Android OS, I'm not creating it manually. Thus, I don't have any specific code to investigate (like some sort of file explorer code), such code doesn't exist in this plugin. Googling the issue didn't yield any results for me either.
I notice that on Android when picking on the file browser tab it can show the correct extension, but when picking files from "Google Drive" and the "Downloads" tab, it returns the path with .bin extension. Not sure if that is the cause of the problem.
.bin may be observed when the file's name that is reported by ContentResolver doesn't have an extension and its MIME type returns application/octet-stream. I can't comment on whether or not this is related to the original issue at the moment.