looking for help with code, uploading files into specific IPFS Groups #37
-
im creating a plugin for WP that allows users to upload documents to pinata, originally I was just uploading and retrieving with no organisation and it was working fine, I decided to try to use the new FIles SDK to tidy things up, Unfortunatley I could not this to work, lack of skill probably, so i tried to revert to the older method of using IPFS Groups, I created the groups and am following the documentation, the file upload works but places it in generic files, I read from the documents that we can push the upload to a group via its CID, I am trying to incorporate this into my code but still cant get it to work, I am including my current api config file and the error I am getting, can someone pleas help me fix this or atleast point me in the right direction. [2024-10-28 10:12:43] Selected group ID: 2443a975-9739-4643-a575-6c38266304d8 and here is the current code
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @zer0ize! Thanks for reaching out! :) Our SDK only supports typescript and JavaScript at the moment, so it looks like you or perhaps some AI suggestions tried to build its own SDK. I would recommend trying to revert back to what you had before and reference the API endpoints instead since they can work in php. Another quick clarification: Pinata recently released a new Files API. This API allows for both public and private files and does not use IPFS. If you need IPFS for web3 applications then you can use the IPFS API instead. The Files API is great for more traditional file storage and retrieval. I'll post links to both API references below: |
Beta Was this translation helpful? Give feedback.
Hey @zer0ize! Thanks for reaching out! :) Our SDK only supports typescript and JavaScript at the moment, so it looks like you or perhaps some AI suggestions tried to build its own SDK. I would recommend trying to revert back to what you had before and reference the API endpoints instead since they can work in php.
Another quick clarification: Pinata recently released a new Files API. This API allows for both public and private files and does not use IPFS. If you need IPFS for web3 applications then you can use the IPFS API instead. The Files API is great for more traditional file storage and retrieval. I'll post links to both API references below:
IPFS API
Files API