Question
How upload images or pdf file in my droplet storage?
I have a React app + express hosted in a Droplet.
I want to allow my users to upload some pictures, save this pictures in my droplet and get a sort of reference to be able to show this picture where I want.
For example a user wants to write a news article, they upload a picture to show in the article.. and then once the user upload the picture, from the JAVASCRIPT point of view.., how can I save this picture from my react front end to digital ocean? and then how can I get back a reference of that image to show it in the news article?
Thanks
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.
×