justicenode / files_external_ipfs

Nextcloud App to add ipfs external storage support
GNU Affero General Public License v3.0
67 stars 9 forks source link

Compatibility with Nextcloud 19 #5

Open gabrielmoura opened 4 years ago

gabrielmoura commented 4 years ago

First of all congratulations on the project.

I ask that you check compatibility with Nextcloud 19. The application recognizes the configuration, creates the files and cannot read them.

I want to help with whatever is necessary, although I do not have the necessary knowledge to do so.

justicenode commented 4 years ago

Sorry for not responding. I'm kinda busy at the moment so i don't have much time for this. If you're using go-ipfs metadata wont work. Which might be what causes this. But I'll look into this when I have the time for it

rasos commented 2 years ago

It would be great to be able to use this IPFS app with currently supported nextcloud versions 20-22.

rasos commented 2 years ago

When installing the app manually and patching appinfo/info.xml to run on nextcloud 21, we see in the log:

"Exception":"Error","Message":"Undefined index: Type at /var/www/nextcloud/apps/files_external_ipfs/lib/Storage/Adapter.php#87"


 85         private function normalizeFile(array $entry, $root = false) {
 86                 return [
 87                         'type' => $root ? ($entry['Type'] == 0 ? 'dir' : 'file') : ($entry['Type'] == 'file' ? 'file' : 'dir')
```,