Question

Trying to Implement Digital Ocean PHP api

  • Posted March 18, 2020
  • API

Hi I have been trying to implement Digital Ocean Spaces to upload it and to manage it in my PHP application using this Library https://github.com/SociallyDev/Spaces-API but even this doesn’t have all the things require to manage images, folders etc So far I have been able to view images in a cretin space, upload image, create folder, but there is no way to distinguish between images and folders, also the images uploaded in a folder are not view able using the code that is showing the images outside that folder.

As My PHP skills are not that good, Any help will be appreciated.

Thanks in Advance

Yaser Riaz

Subscribe
Share

Submit an 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.

Hey,

That is an interesting question. I don’t think that the package that you are using is an official PHP package supported by DigitalOcean.

If you don’t have a lot of PHP skills what I could suggest is rather than building something from scratch. You could instead use something like Nextcloud or OwnCloud.

Both of those have integration with DigitalOcean spaces, and allow you to brows your files and directories. OwnCloud even has a mobile application that you could install on your phone.