我使用VichUploaderBundle将图像上传到symfony-2中的AmazonS3。使用VichUploaderBundle将图像上传到亚马逊S3
我按照这个文档https://github.com/dustin10/VichUploaderBundle/blob/master/Resources/doc/index.md创建了我的实体类。
所以我在实体
/**
* @param UploadedFile $file
*/
public function setFile(File $file = null)
{
$this->file = $file;
$this->updated = new \DateTime();
}
客户端(这是一个Web应用程序)将在base_64格式发送图像有setter方法。 所以我不明白我怎么会得到一个文件对象的字符串? (由于setter方法的参数是FILE)