Depending on the hosting provider you are using, it may be possible to access your assets folder via FTP.
Implementing an FTP call from JavaScript (Angular being a JavaScript framework) is not overly complex. There are numerous examples and discussions available online (such as this one)
Reasons why this approach may not be ideal:
- Your FTP connection credentials would be exposed within the compiled JavaScript code, making them vulnerable to easy access.
- Each opening in your webhost's firewall creates an additional security risk. This is why most experts advise setting up an API endpoint for file uploads, enabling you to control what can be uploaded.
Edit:
Upon revisiting your question and its responses, it appears that you are developing a native-like app with no backend infrastructure, solely relying on an Angular-powered single-page frontend. While this setup offers versatility (as it can run across various platforms supporting JavaScript), the current issue you face is just the tip of the iceberg.
If this indeed is your scenario, "uploading" may not be the right term since you will be storing data locally.
The upside is that you can utilize localStorage
to temporarily store data on the client's HDD. Although not extensive in capacity (refer to this discussion), it provides some level of storage space...