#hiru99-bank account
1 messages ยท Page 1 of 1 (latest)
i want to create stripe.files.create api so in that we compulsory stored file in local and send you path or can i do it directly without storing file in local
?
the https://stripe.com/docs/api/files/create#create_file-file object expects a data (which is a stream of bytes) a name and a type, you could manage to pass those information without having to store the file "locally"
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
in that we need to pass file path in api without pass this can we do it? any solution for that available?
what language are you using?
nodeJs
instead of using fs.readFileSync you could receive the file from your front-end as multipart/form-data and send it directly to Stripe using the file field
can you please share the example code.
this is not Stripe related
you could search for how to receive files on Nodejs on the internet
okay thanks
let me know if you need any more help