using ng2-file-upload in apache2 hosted angular2 app #248

Open
opened 2016-06-09 10:02:05 +00:00 by svojislav · 5 comments
svojislav commented 2016-06-09 10:02:05 +00:00 (Migrated from github.com)

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

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
t246246 commented 2016-06-10 23:50:21 +00:00 (Migrated from github.com)

What is exact meaning of URL, should it be url to my server?

If you mean URL is const URL defined 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.

> What is exact meaning of URL, should it be url to my server? If you mean URL is `const URL` defined 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.
asa9 commented 2016-06-13 08:50:11 +00:00 (Migrated from github.com)

Hello.
I have exactly same questions as Vojislav. Would be great to have answers to all the questions listed here.
Thanks in advance.

Hello. I have exactly same questions as Vojislav. Would be great to have answers to all the questions listed here. Thanks in advance.
t246246 commented 2016-06-14 01:27:28 +00:00 (Migrated from github.com)

@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.

@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.
gylhimanshu commented 2016-12-19 04:30:43 +00:00 (Migrated from 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?

I am facing the same issue..... is there any way to use ng2-file-upload if i am using apache tomcat as server?
svojislav commented 2017-01-20 11:46:30 +00:00 (Migrated from github.com)

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
.

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> .
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#248