Hello. I want to upload photos to Google Drive using image picker. I select the photo from the gallery, but I cannot change its size. (file size very big , for example: 6 mb, i want 1,5-2 mb file size) File sizes become very large. For example, I want to set the photo size to 1080*1600. I looked at dozens of examples and articles, but I couldn't find even one example showing how to do this when using image picker. And also can you help me upload multiple files to Google Drive at the same time using image picker? Thanks.
They are not.
First of all you are missing a leading / in path before storage.
Secondly, it was my mistake to use wrong input in outputDir parameter.
Change it to something like /storage/emulated/0/DCIM/Camera/compressed.
It must be different from filePath.