任何人都可以推荐一个好的HTML5 jQuery文件上传器插件或工作代码? [关闭]

我对拖放不感兴趣,也没有多文件上传。 只是你可以通过AJAX上传文件的事实。 我有一个沉重的模板,我不想惹它,因为它非常好看。 我已经尝试了整个iframe的事情,并在相关页面中添加所有样式是如此痛苦,特别是当试图让正确的设计回到正轨时。</ p>

</ p>

'删除头像'完美无缺,因为这只是一个简单的帖子 通过AJAX / jQuery形成,但是当用户选择文件时,我想要它,所以它会通过更改事件自动上传文件(不是关于加载器,只是微调器在头像预览中会做的事情)。</ p>

所有东西都是通过非常简单的jQuery事件设置的,所以我想完全自定义插件,没有任何样式(我发现很多插件已经内置)。 我一直在考虑自己编写它而没有任何插件,但觉得这样可以节省一些时间。 事实上,我不知道从哪里开始也没有帮助!</ p>

如果有人之前已经这样做了,那么任何帮助或链接都会很有用,可以尝试获得一个图像 可以在没有页面刷新,使用Flash或iframe的情况下上传。</ p>

我不是特别想要使用插件,知道是否有办法会很棒 通过上传文件来完成此操作而不刷新页面。 在这种情况下,似乎最好的方法是使用iframe。 这样,上传图片时不会刷新页面,并且比使用HTML5解决方案更支持 iframe </ code>。</ strong> </ p>
</ div>

展开原文

原文

I'm not interested in the drag and drop, neither the multiple file upload. Just simply the fact you can upload a file via AJAX. I have a heavy weight template that I do not want to mess with as it is very nice as it is. I have tried the whole iframe thing and to add all the styles in the related page is such a pain, especially when trying to get the right design back on track.

Here's what it looks like

The 'delete avatar' works perfectly as that's just a simple post form through AJAX/jQuery but when a user selects the file, I want it so it automatically uploads the file (not bothered about a loader, just an spinner would do in the avatar preview) via the change event.

Everything is set up through very easy jQuery events so I want to completely customise the plugin, without any styles (which I find a lot of plugins already have built in). I have been thinking about writing it myself without any plugin but feel this will just save some time. And the fact I wouldn't know where to start also doesn't help!

If anyone has done this before, any help or links would be great to try and get towards an image that can be uploaded without the page refreshing, the use of Flash or iframes.

I do not particularly want to use a plugin, it would be great to know if there is a way to completing this without refreshing the page, by uploading a file. It seems the best way to go about it in this situation is to use an iframe. This way, the image is uploaded without the page refreshing and the iframe is more supported than using an HTML5 solution.

2个回答



Uploadifive使用HTML5文件API来避免使用你提到的flash和框架的技巧: http://www.uploadify.com/download/download-uploadifive-standard/ </ p>
</ div >

展开原文

原文

Uploadifive uses the HTML5 file API to avoid the tricks with flash and frames you mentioned: http://www.uploadify.com/download/download-uploadifive-standard/



http:// www。 plupload.com/ - Plupload - 您可以将其自定义为仅执行HTML5和一些不错的自定义。</ p>
</ div>

展开原文

原文

http://www.plupload.com/ - Plupload - You can customize it to only do HTML5 and some nice customizations.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问