#Baz-filelink-extension

1 messages ยท Page 1 of 1 (latest)

ocean raft
#

Hello ๐Ÿ‘‹
I'm not sure if there's a way to add in an extension ๐Ÿ˜ฆ Let me double check

#

yeah don't think there's a workaround here unfortunately ๐Ÿ˜ฆ

cerulean pumice
#

I must be missing something? What use is the ability to download files if you can't tell what format it is or you can't open it?

ocean raft
#

ah sorry my bad

cerulean pumice
#

I see

#

Thanks

#

Kinda sucks though - as you need a whole new API request just to get this

ocean raft
#

If I remember correctly, you can pass the expand field when you create the file link so that the response would include the file object

#

not 100% sure as I haven't tried it myself

cerulean pumice
#

i tried that already, unless i'm doing it wrong

#

Fatal error: Uncaught Stripe\Exception\InvalidArgumentException: Got unexpected keys in options array: expand

ocean raft
#

ah, can you share the snippet?

cerulean pumice
#

Think I worked it out

#

Looks like you can expand to include the file object

#

But I've just tried it in live mode, and the file download includes the extension when the browser goes to save it

#

It may just be that the test files created by Stripe identity in test mode have that issue

#

Though I can see they are png's from the file header and also the type in the file object