deviantart 使用哪个 javascript/flash 库来处理文件上传?
您不仅可以看到进度条,还可以在上传图像时显示图像的小缩略图。
他们似乎引用了“deck_uploader”库,但我在谷歌上找不到它。
有什么想法吗?
Not only you can see a progress bar, but it also shows you a small thumbnail of the image while you are uploading it.
They seem to reference a 'deck_uploader' library, but I couldn't find it on google.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您提到的“deck_uploader”功能实际上是指上传一组照片 - 这是一个针对 deviantArt 的高度特定的操作 - 因此上传代码的其余部分也可能是为他们定制的。
另一方面,我不知道您为什么需要这些信息,但我想您想将代码/功能复制到另一个站点。我的建议是永远不要复制别人的代码或设计——这需要大量工作,而且最终你会很难支持你理解一半的意大利面条代码。
一旦您确定了您的要求,就可以寻找一个开源 (javascript) 框架来处理上传。 jQuery 上传可能是一个候选者。 http://aquantum-demo.appspot.com/file-upload。
另外,另一个想法可能是使用 HTML5 规范,它允许上传多个文件,如下所示:
The function you mention "deck_uploader" actually refers to the uploading of a deck of photos - an operation highly specific to deviantArt - so the rest of the upload cod might be custom made for them too.
On the other hand I don't know why you would need that information, but I suppose you want to copy the code/functionality to another site. My advice is to never copy code or design from someone else - it a lot of work and you end up with hard to support spaghetti code that you understand in half.
Once you've set up your requirements look for an open source (javascript) framework to handle uploads. jQuery upload could be a candidate. http://aquantum-demo.appspot.com/file-upload.
Also, another idea might be to use the HTML5 specification, which allows uploading multiple files like so: