uploadcare / uploadcare-widget

Uploadcare Widget, an ultimate tool for HTML5 file upload supporting multiple file upload, drag&drop, validation by file size/file extension/MIME file type, progress bar for file uploads, image preview.
https://uploadcare.com/products/file_uploader/
BSD 2-Clause "Simplified" License
227 stars 102 forks source link

Widget in BuildFire Webview not showing Image Previews or MultiUploading #436

Open apatton724 opened 6 years ago

apatton724 commented 6 years ago

Hello There. I am using Uploadcare widget within a Webview (inside of a Cordova/Buildfire application). As of right now, the preview images are broken and my users can only open/upload 1 file at a time. Is there any way to change that? I'm using version: 2.0.1

Thank you for your assistance.

optlsnd commented 6 years ago

Hi!

Do you consider upgrading to version 3? If you still want to use v2, I can suggest using the last version 2.10.4. If this doesn't help, let me know.

apatton724 commented 6 years ago

Thank you @optlsnd . I'm giving 2.10.4 a shot and then I really do want to upgrade to v3 but it will take a month or two.

The previews still do not work in the webview for 2.10.4.

nd0ut commented 6 years ago

@apatton724 Hello!

I'm not familiar with Cordova but I'm found a plenty of issues related with that img tag not loading images. Problem with Cordova may be caused by CORS or some characters in URL or whatever.

Our widget simply uses HTML img tag to show previews:

<img src="https://ucarecdn.com/0b42ddba-b663-45b1-a23f-4e901a9899e1/-/crop/714x870/3,210/-/preview/">

Can you try to test simple page with this img tag inside your Cordova app? Will it work?

As I say, I'm not familiar with Cordova so I need some extra info about why it is not working and how to fix it. Can you create some testing Cordova project that I can run on my Mac/iPhone and see the result?

Ruben-dai commented 5 years ago

Hi @apatton724, did you find a way to select multiple files using the widget inside a phonegap application? Thanks in advance...