简体   繁体   English

如何使用AJAX和symfony2学说上传多个jpg

[英]How can i upload more than one jpg with AJAX and symfony2 Doctrine

I know that its easy to upload single image with symfony and doctrine2. 我知道使用symfony和doctrine2可以轻松上传单个图像。 But i want to have system like Google docs where i can see the progress bar of current image upload using doctrine2. 但是我想拥有像Google docs这样的系统,在其中可以使用doctrine2查看当前图像上传的进度条。

I know want to use thirdparty plugin. 我知道要使用第三方插件。

Because i need to create an entity for everyimage and store it database with some detail. 因为我需要为每个图像创建一个实体并将其存储在数据库中,并具有一些详细信息。 So i can just bulk upload with third party software in directory 所以我可以使用目录中的第三方软件批量上传

is it possible or not 有没有可能

You may try AX Ajax Multi Uploader 您可以尝试AX Ajax Multi Uploader

Here is their homepage http://www.albanx.com/ (not relevant though) 这是他们的主页http://www.albanx.com/ (尽管不相关)

You can use javascript to upload the file at client side . 您可以使用javascript在客户端上传文件。

Refer http://fineuploader.com/demos.html . 请参阅http://fineuploader.com/demos.html you can browse your files and trigger upload automatically or if you want to process the data at client side (say for a preview) you can process and trigger the upload manually as well. 您可以浏览文件并自动触发上传,或者如果您想在客户端处理数据(例如预览),也可以手动处理并触发上传。

you can also refer http://www.queness.com/post/11434/7-javascript-ajax-file-upload-plugins 您还可以参考http://www.queness.com/post/11434/7-javascript-ajax-file-upload-plugins

and choose the lib which fits your requirement. 然后选择适合您需求的库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM