[SOLVED] GetRealPathFromURI Not Work on Android 15 lazarus / 43-Android ---------------------------------------------------------------------- nullpointer · 2025-06-28 13:06 Hi, I'm trying to upload a file form Android to Server (PHP) Open the file using Intent -> GetRealPathFromURI (get file path) from GetDataUri(intentData). It work on Android 12 but doesn't on Android 15 (return empty string). Whats wrong? is there any change permission in Android 15? ---------------------------------------------------------------------- gues1 · 2025-06-28 15:38 May be this can help ? https://developer.android.com/reference/android/Manifest.permission#RE AD_EXTERNAL_STORAGE There are some links insde. This change with API 33. ---------------------------------------------------------------------- nullpointer · 2025-06-29 10:27 Solved my problem using following steps: Copy file to app’s internal or cache directory then upload it. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i CopyFileFro mUri(IntentManager1.GetDataUri(intentData),GetEnvironmentDirectoryPath (dirDownloads));filePath:=GetEnvironmentDirectoryPath(dirDownloads)+'/ '+GetFileNameByUri(IntentManager1.GetDataUri(intentData)); if FileExists(filePath) then      HttpClient1.UploadFile('http://192.xx.xx.xx/webapi/uploadfile.php', filePath, 'fileupload')    else      ShowMessage('File does not exist at: ' + filePath);