Report this

What is the reason for this report?

Image upload into ubuntu available in droplet

Posted on January 20, 2021

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

Heya,

There is no limitation that will prevent you from uploading the images, just keep an eye on your disk space usage as images tend to be disk space consuming. You can also think of a compression for the images to reduce their size.

You can upload your blog images directly to a directory on your DigitalOcean droplet using methods like scp, rsync, SFTP, or FTP.

Regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.