Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload multiple photos from Google Photos

The goal is to be able to select multiple photos from Google Photos on an Android device and upload them using a regular html file input control.

I am able to select multiple photos but only one is uploaded...

Using the Gallery I am able upload multiple photos. Any idea why?

Here is a tester: https://jsfiddle.net/7sL1v46e/

<input id="fileInput" type="file" multiple accept="image/*">

When multiple files are selected the number of selected files appears in front of the file input.

EDIT 1: included the attribute accept="image/*". Still doesn't work if source of the photos is Google Photos

like image 864
JCS Avatar asked Oct 09 '17 12:10

JCS


1 Answers

You should specify the input types you want to accept. For whatever reason, this makes everything work as expected.

<input type="file" id="images" multiple accept="image/*" />
like image 124
fny Avatar answered Oct 20 '22 05:10

fny