Question

Trying to Implement Digital Ocean PHP api

Posted March 18, 2020 161 views
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

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.

×
1 answer

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.

by Michael Lenardson
Nextcloud is fork of ownCloud, a file sharing server that permits you to store your personal content, like documents and pictures, in a centralized location, much like Dropbox. The difference with Nextcloud is that all of its features are open-source. It also returns the...
Submit an Answer