sap.ui.unified.FileUploader ignores captured picture
Browser/version (iPad with iOS 10, Macbook Pro 10.11.6):
URL: https://openui5beta.hana.ondemand.com/explored.html#/entity/sap.ui.unified.FileUploader/samples
- Open the FileUploader sample with a Macbook or an iOS device
- When you will be asked if you want to take a picture or choose an image from the device/iCloud take a picture. Result is that the taken picture will be used (CORRECT)
- click/press again on the FileUploader and take again a picture. Result is that the FileUploader still uses the first taken picture and not the second one (ERROR).
If you choose an image from the device/iCloud the chosen image will be used.
I have recorded the issue: https://youtu.be/7c1xQpBwa-4
Hi Myge91, Thanks for reporting the issue.
The issue seems to be that the temporary image is always saved with the same name. Can you please retry the same in your local setup by setting the property "sameFilenameAllowed" to true: https://openui5beta.hana.ondemand.com/docs/api/symbols/sap.ui.unified.FileUploader.html#getSameFilenameAllowed
You can try testing this here: http://output.jsbin.com/jerepaxeti/
That should resolve your issue already.
Thanks & Regards, Pavan