ratkop / -cordova-imagePickerEx

Modification version of cordova-imagePicker that returns double array with original images and thumbnails
12 stars 15 forks source link

URI Problem, if size is too large, the Temp URI isnt correct #7

Open clarklight opened 9 years ago

clarklight commented 9 years ago

I am having a weird problem, its occurs on this ext version also on the original version. When i combine the multiple select script with the cordova file-transfer for upload.

For my Lg-g3, pictures that are above 700kb won't upload and give me a error_code=1(file not found). for my Samsung Note2, pictures that are above 1.2mb won't upload. Any images below upload with no problem. (No problem on my ipad).

When i wasn't using this script and doing single image upload, it has no problem for any images. Not sure why this happen after i had been using multi-images picker with upload. Also why is the size different per different devices.

clarklight commented 9 years ago

I had been continuing to dig into the problem, i tested the Multi-image upload script but replacing the URI with static Native image URI, and it uploads with no problem. So i assume the problem occur when the Native URI is replaced with the temp URI.