files_external_ipfs icon indicating copy to clipboard operation
files_external_ipfs copied to clipboard

The file could not be downloaded.

Open imopro opened this issue 5 years ago • 4 comments

The IPFS app is enabled on the NC, and the correct settings are made. Can upload files to the IPFS folder or copy files from other folders to the IPFs folder. However, files cannot be downloaded from the IPFS folder or previewed.

I checked the log, as follows:

[PHP] Error: fclose() expects parameter 1 to be resource, string given at /var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php#859 GET /index.php/core/preview?fileId=781&c=5f696628ed060&x=500&y=500&forceIcon=0 from 192.168.67.1 by admin at 2020-09-22T02:49:13+00:00

imopro avatar Sep 22 '20 02:09 imopro

The file download problem has been resolved, but the file still cannot be previewed.

imopro avatar Sep 22 '20 07:09 imopro

Would you mind telling me what it was?

If youre using go-ipfs you will have problems since nextcloud relies heavily on metadata and go-ipfs doesnt have metadata yet. My workarounds get it to mostly work, but only mostly.

Also it looks like youre using encryption, have tried it without already?

justicenode avatar Sep 22 '20 07:09 justicenode

I set up a cluster with Go-IPFS, IPFS Cluster and IPFS-Cluster-ctl. The ipfs-cluster-ctl Pin add hash command allows a file to exist on all nodes in the cluster, which is really cool.

I wonder if I can add the command ipfs-cluster-ctl pin add hash in the "external files_external_IPFS" App?

What I mean is, after enabling the "files_external_IPfs" App in NC, configure the device, then upload a file and automatically Pin the file. Thus, after the file is uploaded to one node in the IPFS cluster, it exists in other nodes as well. Can it be done?

在 2020年9月22日,下午3:41,Ѵ∑1L [email protected] 写道:

Would you mind telling me what it was?

If youre using go-ipfs you will have problems since nextcloud relies heavily on metadata and go-ipfs doesnt have metadata yet. My workarounds get it to mostly work, but only mostly.

Also it looks like youre using encryption, have tried it without already?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/justicenode/files_external_ipfs/issues/6#issuecomment-696560907, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSKR56TPKANWAVBSDKJB3DSHBILBANCNFSM4RVHWHFQ.

imopro avatar Oct 16 '20 09:10 imopro

@imopro that would be something to add in the future. I moved it to a new issue.

justicenode avatar Oct 19 '20 10:10 justicenode