using ng2-file-upload in apache2 hosted angular2 app #248
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi all,
I am trying to use ng2-file-upload in my angular2 app, which is hosted in appache2 server.
Everything seem ok on client side, it displays demo-page, same as in your example, but I am not sure weather it works anyway. When I drop file it is shown in queue and when I press upload button progress bar shows that it is finished. When I change URL to something stupid it also finishes the job.
I do not know where to put backend demo code and where it uploads by default and is the file uploaded (without this backend demo) at all. What is exact meaning of URL, should it be url to my server?
How can I use it ti upload files to my apache2 web server that is hosting my app , do I need backend code then?
I am new in Angular2 and I am struggling for months i order to get everything set, so please do not be mad if questions are stupid. I was using server based JAVA web frameworks before.
Thank in advance,
Vojislav
If you mean URL is
const URLdefined in simple-demo.ts, the answer is yes.That URL should get the contents from HTTP request the content type of which is multipart/form-data, and do something you need, to save to disk or database etc.
Hello.
I have exactly same questions as Vojislav. Would be great to have answers to all the questions listed here.
Thanks in advance.
@asa9: I think I have already answered all questions. If demo is working on your local Apache server, all you need is to create server-side program that recieve multipart/form-data. If you are programming with classic cgi, URL would be http://your.apache.server/cgi-bin/upload.cgi, where upload.cgi is your program.
I am facing the same issue..... is there any way to use ng2-file-upload if i am using apache tomcat as server?
It depends on your backend. I added multipart rest service and it was ok. I
19.12.2016. 05.30, "gylhimanshu" notifications@github.com је написао/ла:
I am facing the same issue..... is there any way to use ng2-file-upload if
i am using apache tomcat as server?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/valor-software/ng2-file-upload/issues/248#issuecomment-267879842,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARBhTwY5T7VM6nRlKg2oGR9f4D5QoAfeks5rJghzgaJpZM4Ix0AV
.