Skip to content
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

FileUpload of fresh photos from iPhone/IPad not working in sequence #307

Open
5 tasks done
Saladinek opened this issue Oct 13, 2020 · 0 comments
Open
5 tasks done

Comments

@Saladinek
Copy link
Contributor

Bug Report

Prerequisites

  • Can you reproduce the problem in a MWE?
  • Are you running the latest version?
  • Did you check the FAQs to see if that helps you?
  • Are you reporting to the correct repository?
  • Did you perform a search in the issues?

For more information, see the CONTRIBUTING guide.

Versions

1.5.0

Description

When using the upload components, taking a fresh photo to upload with iPhone/iPad, file is always uploaded with the name image.jpg and the component thinks every subsequent photo is the same => No second upload happens.

Steps to Reproduce

  1. Open Precise-UI KitchenSink on an apple mobile device
  2. Click update, choose take a photo option
  3. Take a photo and upload it
  4. Repeat step 3

Expected behavior: Second photo is uploaded.

Actual behavior: nothing happens.

Environment details: Every Browser as long as the device is an Apple iPhone/iPad

Possible Solution

Possible solution is to extend the push function inside the FileUploader component. If this function notices the used platform is iPad and iPhone and the file is called image.jpg (Files from gallery are always under different name, which the user has no control of) rename the file to something else. One possible solution is to stringify the file.lastModified value and use it as file name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant