Question

Image upload into ubuntu available in droplet

Posted January 20, 2021 291 views
Node.jsUbuntu 16.04

Hello,

I wish to host my blog website developed on MEAN stack in digitalocean. For the blog, I will be uploading images to show it on my website. I would like to know whether I can store images in Ubuntu file system itself (droplet) instead of going for digitalocean space. Please someone confirm if this possible.

Thanks in advance.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
2 answers

It is possible. My droplet has ~25 GB of storage, so I would assume yours has that much, as well. You might use some sort of FTP (file transfer protocol) to transfer your html/css files, along with your image files. Depending on how you call the image files from your html/css, your file structure should conform. For example, if you have something like

<img src="myImg.jpg" alt="please reload>

then make sure “myImg.jpg” is in the same directory as your source html/css files. Good luck.

  • Thanks mate for your answer. I would like to know whether image upload is possible thru express REST API to droplet storage instead of FTP.