openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.ui.unified.FileUploader ignores captured picture

Open Myge91 opened this issue 9 years ago • 1 comments

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

  1. Open the FileUploader sample with a Macbook or an iOS device
  2. 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)
  3. 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

Myge91 avatar Jan 04 '17 11:01 Myge91

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

Pavan-SAP avatar Jan 10 '17 13:01 Pavan-SAP