- Jun 6, 2020
- 11,517
- 4,383
I would like the user to be able to choose an existing image and upload it to the FTP server. I tried to use the following code to identify the image:
B4X:
The code returns as values:
Dir = ContentDir
FileName = content://com.android.providers.media.documents/document/image%3A5216
and obviously the upload is not performed. What should I do so that the user can upload images from anywhere on his device (internal or SD Card)?
I tried to upload an image from a known location and the code works.
B4X:
Thank you!
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
Dir = ContentDir
FileName = content://com.android.providers.media.documents/document/image%3A5216
and obviously the upload is not performed. What should I do so that the user can upload images from anywhere on his device (internal or SD Card)?
I tried to upload an image from a known location and the code works.
B4X:
Dim sf As Object = ftp.UploadFile( File.DirRootExternal, "test.jpg", False, "test.jpg")
Thank you!
برای دیدن لینک ها باید ثبت نام کنید