pqina / filepond

🌊 A flexible and fun JavaScript file upload library
https://pqina.nl/filepond
MIT License
15.26k stars 828 forks source link

Drag and Drop from Gmail Failing #593

Open shoxter opened 4 years ago

shoxter commented 4 years ago

Describe the bug

When dragging an embedded image from a Gmail (or Outlook) email to the Filepond drag and drop handle, the upload immediate turns red with the following errors: "Waiting for Size" and "Error During Load"

Logs

No logs.

To Reproduce

Unfortunately, I'm currently too pressed for time to create a project demonstrating this.

Expected behavior

When dragging an image from Gmail (or Outlook), one would expect the image to be ready for upload but it instead gives the aforementioned error without any javascript or network error/logs.

Stacktraces

No stack trace.

Information about your project:

Additional context

N/a

rikschennink commented 4 years ago

We require the issue template to be filled out on all new issues. The issue template helps us collect all the information we need to address your submission efficiently.

The more information we have, the faster the issue can be resolved.

We will be able to more closely look at your issue once the issue template has been filled out. This issue will be closed in 5 days if the above is not addressed.

shoxter commented 4 years ago

We require the issue template to be filled out on all new issues. The issue template helps us collect all the information we need to address your submission efficiently.

The more information we have, the faster the issue can be resolved.

We will be able to more closely look at your issue once the issue template has been filled out. This issue will be closed in 5 days if the above is not addressed.

Sorry about that. I'm very short on time and was hesitant to even post the issue initially.

I've reformatted it so that it fits the template. If a repo reproducing the issue is absolutely necessary to investigate, you can close the issue. I unfortunately don't have the time to create one at the moment.

MzudemO commented 3 years ago

This can be reproduced on https://pqina.nl/filepond/#multi-file-demo by selecting Browse and adding files from google drive.

Information about the project: Android 6

Android 10

May be a chromium issue since Edge 45 does not use it?

Will try to make sandbox once I figure out how to test this on Desktop.

rikschennink commented 3 years ago

I can drag/drop the gmail logo and it works correctly but dropping images from inside the email doesn't work.

Maybe this is because the images are behind a login. The API used to download the images cannot reach the images because of that.

MzudemO commented 3 years ago

It may be related to FilePondPluginFileEncode

https://codesandbox.io/s/vanilla-filepond-forked-nc4bk breaks on mobile chrome when selecting drive files (stuck on waiting for size)

hd-ignaciosuarez commented 3 years ago

I did replicate the issue here at next url:

https://codesandbox.io/s/vue-filepond-images-from-gmail-not-working-nknbm?file=/src/components/FilePondDemo.vue

'file' parameter at 'process' function is returning blob html/text.

Steps to reproduce:

1.- Drop an Image from GMAIL email body. 2.- Look at the console log blob object.