However this method need to expose IPFS API (port 5001) to the network. Exposing IPFS API to outside network is not secure in the real world. My questions is beside uploading file(s) through IPFS API (port 5001), Is there any more secure way to upload file or directory into IPFS (for example through IPFS Gateway, port 8080)? If there is better way to do it, would you please give me some details about how to implement it? Thank you for your comments.