Android file upload - wrong file name, native browser

后端 未结 2 972
野的像风
野的像风 2021-01-07 01:55

There are a lot of questions about file upload with Android but most of them without answer and actually none of them are related with javascript or php. I\'m seeing strange

相关标签:
2条回答
  • 2021-01-07 01:59

    I have researched a lot and i have made a solution for android only. When you are in browser and iPhone, you can use your solution as it is working perfectly. But, android have a security issue. So, i had to make a solution for android.

    You can follow my solution here.

    0 讨论(0)
  • 2021-01-07 02:25

    What I have researched in last few hours is when file being uploaded is within the gallery for the android phone, due to security checks above problem happens. No file name, extension, size will be readable.

    To workaround this: 1- Click on browse button, you will be taken to gallery of your device. 2- On right corner of gallery click Options image ("...") and Enable "Internal Storage". 3- Make sure the file you upload is in Internal Storage. 4- Access "Internal Storage" option while uploading. 5- File should show the correct name.

    0 讨论(0)
提交回复
热议问题