$ {filename}来自哪里?

时间:2011-10-09 08:43:31

标签: javascript jquery amazon-s3 uploadify

http://www.uploadify.com/forums/discussion/1416/uploading-to-amazon-s3/p1

Terebentina的评论。在“密钥:”部分。 $ {filename}来自哪里?

或者,不要让它看起来像:

"key": encodeURIComponent(encodeURIComponent("40/20091216-120535/${filename}"))

我想让它看起来像:

"key": encodeURIComponent(encodeURIComponent("40/20091216-120535/foobar${file_extension}"))

可悲的是,${file_extension}不存在。任何人都知道如何做到这一点?

修改

进一步挖掘。我发现这个http://aws.amazon.com/articles/1434现在让我得出结论:${filename}是S3使用的变量而不是uploadify。

问题仍然存在。如果我们要为所有上传的文件指定特定名称并使扩展保持动态,该怎么办?例如:foobar.mp4,foobar.txt,foobar.flv等。我们应该怎么做呢?

1 个答案:

答案 0 :(得分:0)

http://aws.amazon.com/articles/1434 ${filename}中所述,是Amazon S3在上传文件时使用的特殊变量。

相关问题