0

I do not have an idea how to upload a file to PHP server using ng2-file-upload with Angular2. I don't know how to pass a PHP url to 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.

1 Answer 1

1

This has a lot of demo's available as well as a step-by-step guide.

Valor ng2 File upload (reference) and ng2 Uploader

Sign up to request clarification or add additional context in comments.

9 Comments

Where did you found demo's using PHP on Valor ng2?
Valor ng2 File Upload is a reference. PHP example is with ng2 Uploader. [With simple PHP] (github.com/jkuri/ng2-uploader#backend-example-using-plain-php)
So I will forget ng2-file-upload and try ng2-uploader... :( lets see if works
Just a question... Do you know if the url "'localhost:10050/upload'" in the example, this "/upload" will gonna be my php file?
/upload is the folder where you'll be storing the file uploaded by the user.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.