使用Laravel通过Fine Uploader上传确认

时间:2017-02-14 21:52:34

标签: laravel amazon-s3 fine-uploader

Fine Uploader提供了一个上传到S3的示例Laravel controller。可以使用以下命令在FU的配置中触发上传:

file_to_execute = sys.argv[1]

# Want to find out if file_to_execute completed successfully
exec(open(file_to_execute).read())

和Laravel的相应路线:

signature: {
  endpoint: '/uploader'
},

到目前为止一切顺利。要验证上传到S3,我需要在控制器中触发此节:

Route::post('/uploader', 'ExampleController@endpoint');

相应的配置条目是:

if(isset($this->req->success)){
    //after successful upload
    //the request will contain the bucket and key at this point
    return $this->verifyFileInS3($this->shouldIncludeThumbnail());
} ....

我的问题是:上面的X是什么? (我试过X =' /上传?成功',X =' /上传?成功=真')

0 个答案:

没有答案