Now I had done the php code to upload file to google cloud storage
<?php
use google\appengine\api\cloud_storage\CloudStorageTools;
$bucket = '<your bucket name>'; // your bucket name
$root_path = 'gs://' . $bucket . '/';
$_url = '';
if(isset($_POST['submit']))
{
if(isset($_FILES['userfile']))
{
$name = $_FILES['userfile']['name'];
$file_size =$_FILES['userfile']['size'];
$file_tmp =$_FILES['userfile']['tmp_name'];
$original = $root_path .$name;
move_uploaded_file($file_tmp, $original);
$_url=CloudStorageTools::getImageServingUrl($original);
}
}
?>
<html>
<body>
<form action="#" method="post" enctype="multipart/form-data"> Send these files:
<p/> <input name="userfile" type="file" />
<p/> <input type="submit" name="submit" value="UPLOAD" /> </form>
</body>
</html>
<?php
echo $_url;
?>
Then I would like to code another php to display all files in my bucket on Google Storage. But, I don't know how to Please help and guide me