Giter Club home page Giter Club logo

Comments (22)

jaiselrahman avatar jaiselrahman commented on June 3, 2024

The issue has been fixed in version 1.3.1. Please check it out.

from filepicker.

PembaTamang avatar PembaTamang commented on June 3, 2024

hey I am still seeing this issue in 1.3.1 it is a samsung galaxy j7 running android 6.0.1.

No name is being displayed

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 3, 2024

Did you try clean rebuild?

from filepicker.

PembaTamang avatar PembaTamang commented on June 3, 2024

yes I tried I am due to show my app tomorrow can you give a fix??

from filepicker.

PembaTamang avatar PembaTamang commented on June 3, 2024

here is the config
intent.putExtra(
FilePickerActivity.CONFIGS, Configurations.Builder()
.setCheckPermission(true)
.setShowImages(false)
.setShowFiles(true)
.setShowVideos(false)
.setShowAudios(false)
.setSuffixes("pdf")
.enableImageCapture(false)
.setMaxSelection(1)
.setSkipZeroSizeFiles(true)
.build()

from filepicker.

PembaTamang avatar PembaTamang commented on June 3, 2024

can you reproduce the issue ??

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 3, 2024

No, I couldn't reproduce the issue.

Can you log the result of files selected in onActivityResult method, something like this

ArrayList<MediaFile> files = data.getParcelableArrayListExtra(FilePickerActivity.MEDIA_FILES);
for(MediaFile f: files){
    Log.d(TAG, "Name " + f.getName());
    Log.d(TAG, "Path " + f.getPath());
    Log.d(TAG, "Uri " + f.getUri());
}

from filepicker.

PembaTamang avatar PembaTamang commented on June 3, 2024

I am sorry that was my colleague's phone and I can use it only tomorrow but I remember that the name and path was coming correctly as I displayed the name on a textview and I used the path to upload it to a server. The only issue was that the names were not showing and could not see what file I was choosing

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 3, 2024

Are you overriding any theme, may be it was issue with the theming.

from filepicker.

PembaTamang avatar PembaTamang commented on June 3, 2024

Nope I have a another device with resurrection remix 5.7.1 based on marshmallow and it is working properly there. Can it be an issue with Samsung devices?

from filepicker.

PembaTamang avatar PembaTamang commented on June 3, 2024

No, I couldn't reproduce the issue.

Can you log the result of files selected in onActivityResult method, something like this

ArrayList<MediaFile> files = data.getParcelableArrayListExtra(FilePickerActivity.MEDIA_FILES);
for(MediaFile f: files){
    Log.d(TAG, "Name " + f.getName());
    Log.d(TAG, "Path " + f.getPath());
    Log.d(TAG, "Uri " + f.getUri());
}

My HTC 816 running resurrection remix 5.7.1 based on android 6.0.1 : Working properly

 path /storage/emulated/0/Download/sample.pdf
 name sample.pdf
 uri content://media/external/file/37327

Samsung galaxy j7 with android 6.0.1: The file names in the UI are blank like the screenshots posted above

 path /storage/emulated/0/annual_report_2009.pdf
 name annual_report_2009.pdf
 uri content://media/external/file/51946

Sorry for the late reply

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 3, 2024

Thanks you,
So the file name is read properly, the issue seems to be in displaying them.

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 3, 2024

Can you try out the following apk, select one of the pdf file and share the log using the menu.

https://drive.google.com/open?id=1UCxODyt4QC9xQejNNS0grpaVEKgJx3L-

from filepicker.

PembaTamang avatar PembaTamang commented on June 3, 2024

Thanks you,
So the file name is read properly, the issue seems to be in displaying them.

yes

from filepicker.

PembaTamang avatar PembaTamang commented on June 3, 2024

Can you try out the following apk, select one of the pdf file and share the log using the menu.

https://drive.google.com/open?id=1UCxODyt4QC9xQejNNS0grpaVEKgJx3L-

here it is
logcat.txt

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 3, 2024

Thank you. The issue is with the MEDIA_TYPE not read properly.
Will fix it soon.

from filepicker.

PembaTamang avatar PembaTamang commented on June 3, 2024

ok . thank you for responding so well

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 3, 2024

Welcome,
Can you check the following version works

com.github.jaiselrahman:FilePicker:issue_45-SNAPSHOT

from filepicker.

PembaTamang avatar PembaTamang commented on June 3, 2024

yes its working!! Thank you so much

Welcome,
Can you check the following version works

com.github.jaiselrahman:FilePicker:issue_45-SNAPSHOT

Yes, it is working now!! Thank you so much

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 3, 2024

Version 1.3.2 released with the fix.
Thanks for your cooperation.

from filepicker.

PembaTamang avatar PembaTamang commented on June 3, 2024

welcome. Thank you for responding so quickly

from filepicker.

jafar5029 avatar jafar5029 commented on June 3, 2024

Not working for document upload(pdf) , path giving null
Log is Given Below
--------- beginning of system
06-02 19:47:54.369 18260 18260 E OplusCustomizeRestrictionManager: sInstance is null, start a new sInstance
--------- beginning of main
06-02 19:47:59.680 18260 18260 D FilePicker: Name : PatientReport1.pdf
06-02 19:47:59.680 18260 18260 D FilePicker: Path : null
06-02 19:47:59.680 18260 18260 D FilePicker: MediaType : 0
06-02 19:47:59.680 18260 18260 D FilePicker: Mime : application/pdf
06-02 19:47:59.680 18260 18260 D FilePicker: MediaType After double check : 0
06-02 19:47:59.680 18260 18260 D FilePicker: MediaType in mediastore : 0

from filepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.