Php 谷歌应用引擎空表单上传字段提交问题

Php 谷歌应用引擎空表单上传字段提交问题,php,google-app-engine,file-upload,google-cloud-storage,Php,Google App Engine,File Upload,Google Cloud Storage,我正在使用谷歌云存储制作我的第一个PHP谷歌应用程序引擎应用程序 我有一个表单,里面几乎没有上传字段。一旦我使用一个字段上传了一个图像,并将其余字段保留为空,我的云存储桶中就会为那些我没有上传任何图像的字段生成一个垃圾文件。这就是我的表格的样子 <form method="post" class="admin" action="<?PHP echo $postUrl; ?>" enctype="multipart/form-data"> <input type='f

我正在使用谷歌云存储制作我的第一个PHP谷歌应用程序引擎应用程序

我有一个表单,里面几乎没有上传字段。一旦我使用一个字段上传了一个图像,并将其余字段保留为空,我的云存储桶中就会为那些我没有上传任何图像的字段生成一个垃圾文件。这就是我的表格的样子

<form method="post" class="admin" action="<?PHP echo $postUrl; ?>" enctype="multipart/form-data">
<input type='file' name='image1'>
<input type='file' name='image2'>

<input type='submit' name='submitBttn' value='submit'>
</form>

看起来像是两个合法的错误:1)如果不移动,所有临时上传的文件都应该取消链接(删除)(默认机制不起作用,因为它使用系统取消链接,而系统取消链接不处理用户空间中定义的gs://自),2)PHP中的空文件没有写入临时目录,但云存储代理默认为创建它们,因此应更新应用程序引擎PHP运行时以删除它们

根据文件:


正在进行修复,希望在下一个版本中使用。

这显然是一个问题,我复制了这个问题。我已经在内部提交了一份bug报告,并将继续跟进。非常感谢boombatower。
The file will be deleted from the temporary directory at the end of the request if it has not been moved away or renamed.