Skip to main content
added 5 characters in body; edited title
Source Link
peterh
  • 1
  • 20
  • 89
  • 113

Angular 2 / Angular 4 : How can iI access file from the local system location?

I have one JSON file at the following location in my system:

/etc/project/system.json

/etc/project/system.json

I'm trying to access this file using my system path but it's not working. However it's working fine if i put this file inside src in my application.

JSON File path is "/etc/project/system.json" and my application path is "/var/www/DemoProject"

So how can iI access file from my local system.?

Angular 2 / Angular 4 : How can i access file from the local system location?

I have one JSON file at the following location in my system

/etc/project/system.json

I'm trying to access this file using my system path but it's not working. However it's working fine if i put this file inside src in my application.

JSON File path is "/etc/project/system.json" and my application path is "/var/www/DemoProject"

So how can i access file from my local system.

Angular 2 / Angular 4 : How can I access file from the local system location?

I have one JSON file at the following location in my system:

/etc/project/system.json

I'm trying to access this file using my system path but it's not working. However it's working fine if i put this file inside src in my application.

JSON File path is "/etc/project/system.json" and my application path is "/var/www/DemoProject"

So how can I access file from my local system?

added 102 characters in body; edited tags
Source Link
Pinank Lakhani
  • 1.1k
  • 2
  • 11
  • 31

I have one JSON file at the following location in my system

/etc/project/system.json

I'm trying to access this file using my system path but it's not working. However it's working fine if i put this file inside src in my application.

JSON File path is "/etc/project/system.json" and my application path is "/var/www/DemoProject"

So how can i access file from my local system.

I have one JSON file at the following location in my system

/etc/project/system.json

I'm trying to access this file using my system path but it's not working. However it's working fine if i put this file inside src in my application.

So how can i access file from my local system.

I have one JSON file at the following location in my system

/etc/project/system.json

I'm trying to access this file using my system path but it's not working. However it's working fine if i put this file inside src in my application.

JSON File path is "/etc/project/system.json" and my application path is "/var/www/DemoProject"

So how can i access file from my local system.

Notice removed Authoritative reference needed by CommunityBot
Bounty Ended with Gokhan Kurt's answer chosen by CommunityBot
Notice added Authoritative reference needed by Pinank Lakhani
Bounty Started worth 50 reputation by Pinank Lakhani
Source Link
Pinank Lakhani
  • 1.1k
  • 2
  • 11
  • 31

Angular 2 / Angular 4 : How can i access file from the local system location?

I have one JSON file at the following location in my system

/etc/project/system.json

I'm trying to access this file using my system path but it's not working. However it's working fine if i put this file inside src in my application.

So how can i access file from my local system.