简体   繁体   English

在PHP中使用ng2-file-upload

[英]Using ng2-file-upload with PHP

I do not have an idea how to upload a file to PHP server using ng2-file-upload with Angular2. 我不知道如何使用Angular2使用ng2-file-upload将文件上传PHP服务器。 I don't know how to pass a PHP url to FileUploader . 我不知道如何将PHP网址传递给FileUploader

I am trying to find something on internet about this, but nothing until now. 我正在尝试在互联网上找到有关此内容的信息,但到目前为止没有任何信息。

If it is possible, could someone give me an example? 如果有可能,有人可以给我一个例子吗?

Thanks. 谢谢。

EDIT: It works using ng2-uploader and following this example as @Chiragh Dewan said. 编辑:它使用ng2-uploader并按照@Chiragh Dewan所说的示例进行工作。

This has a lot of demo's available as well as a step-by-step guide. 它具有许多可用的演示以及分步指南。

Valor ng2 File upload (reference) and ng2 Uploader Valor ng2文件上传 (参考)和ng2 Uploader

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

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