我在做我的项目。我的问题是,如何在亚马逊S3中执行CRUD操作?到目前为止,我可以上传/创建文件到桶和检索文件,但我不知道如何做,更新和删除文件。
config.php
<?php
//Bucket Name
$bucket_name ="my_bucket";
//include the S3 class
if (!class_exists('S3'))require_once('S3.php');
//AWS access informations
if (!defined('awsAccessKey')) defi
var fd = new FormData();
fd.append("fileToUpload", document.getElementById('fileToUpload').files[0]);
var xhr = new XMLHttpRequest();
xhr.open("POST", "uph.php");
xhr.send(fd);
uph.php:
var_dump($_FILES['fileToUpload']);
这是可行的,但显然只适用于files[0]。如何让这对选定的文件工作?
我试着
例如,我有这样的属性:
private string foobar;
public string Foobar
{
get
{
return this.foobar;
}
set
{
if (value != this.foobar)
{
// here I want to check if value is correct
if(value != someth