Android Question Upload file from SD card

Discussion in 'Android Questions' started by ElliotHC, Aug 9, 2019.

  1. ElliotHC

    ElliotHC Active Member Licensed User

    I'm trying to upload a file located within a folder on an external SD card.

    Is there a simple project example accessing the SD card?

    Thanks
     
  2. udg

    udg Expert Licensed User

    Have a look at this.
     
    DonManfred likes this.
  3. ElliotHC

    ElliotHC Active Member Licensed User

    I've already got it in pieces.. Trying to figure out how to isolate a specific folder and select only the last file in the folder :confused:
     
  4. udg

    udg Expert Licensed User

    So, if I understand it correctly, your are facing a first problem which is how to locate and select the source file on the device (by last file in a folder do you mean the one with the most recent timestamp or a file having a name that let you understand it is the last one?).
    Once you get that file, you need to copy it to an SD card. Right?
     
  5. ElliotHC

    ElliotHC Active Member Licensed User

    Thanks for the help udg. the files are named by date, mp4 files so time stamp and name should be the same order. Essentially yes, you are correct. Firstly, I need to locate the last file in the list, then I need to upload it.. No doubt I'll need to pull apart another example project for that.

    I'm using SMB already to save to a shared folder but I need to upload this file.
     
  6. udg

    udg Expert Licensed User

    I'm not on my dev PC now, but I guess that you could use something like
    Code:
    For Each f As String In File.ListFiles(Source)
    to look for the most recent file in folder Source.
    The use info in the link above to upload it to your SD card. Sorry to be of such a limited help at the moment.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice