Hi you have told to me to not post too many questions but the reason is that you told me first to take a look at the topics but the blocks doesn't works, and nobody respond to me with the correct solution, I am a developer but this is code create from other people not to me , it is impossible guess this blocks without any good guide or a correct answer to put geolocation and file upload app, it is a community for give the people informations then we give these informations to all the people thank you for your
<?php
if ($_SERVER['REQUEST_METHOD']==='POST') {
header('Content-Type: application/json');
if (!isset($_FILES['f']) || $_FILES['f']['error']!==UPLOAD_ERR_OK) {
echo json_encode(['ok'=>false,'msg'=>'no file']); exit;
}
@mkdir(__DIR__.'/upload',0775,true);
$name = 'test_'.time().'_'.basename($_FILES['f']['name']);
$ok = move_uploaded_file($_FILES['f']['tmp_name'], __DIR__.'/upload/'.$name);
echo json_encode(['ok'=>$ok,'saved'=>$name,'ini'=>[
'upload_max_filesize'=>ini_get('upload_max_filesize'),
'post_max_size'=>ini_get('post_max_size'),
]]); exit;
}
?>
<form method="post" enctype="multipart/form-data">
<input type="file" name="f">
<button>UP</button>
</form>
``` the problem is the I have do the geolocation function only using visualizzatoreweb but when I used this the upload not work, because at the first the upload was do with webviewextra but if I use webviewextra doesn't work the geolocation..
Permissions must be requested successively (one after the other) and only on Android versions where they are available. Storage permissions are no longer available or permitted on all Android versions.
In my website with the geolocation I have the exact position with the place Vitamarinaweb (2).aia (801.4 KB)
this is my project here the geolocation works but the uploading not works.
Because I have read on the web that if you are using webviewextra for file uploading android denied the permissions geolocation, other side if I use geolocalization with webviewer the uploading doesn't work, I ' m working too many days to find the solution but I'm going crazy is too difficult to work in specific blocks created by other people, if there a genius that show me the blocks correct solution, I will thank you him very much, thanks
If you are patient, do not create any new topics, and give me a chance, let me see if I can come up with a working solution, that on upload of a file, the file, the filename, and the users location are stored. It may take me a little while to set all of this up.