#mrelliot69
1 messages ยท Page 1 of 1 (latest)
Im using files stripe api, and wanted to know how i can generate a preview of a file upload to stripe
already tried using stripe file links, but the file return is allways a .tmp file
yeah i know but i can retrive the url
to generate the preview
oh yeah I see
im retriving the files submited in this dispute dp_1LAsh6CRI4H2eNZZOrP8F8I0
this is because it's a downloadable resource
what do you mean by a preview though, what's the use case? this is a low level API to download the file, it's not going to have something like a URL you can just share to someone, it's to let your server download the file and you can build your own logic to have a way to show that to someone. I'm lost on your overall use case here for what you're trying to do.
i want to show the image preview on my dashboard
simple like that, dont want the url just to download a tmp file when i uploaded a jpg
like you have an internal dashboard for your system and you want to use the API to provide a way for users of your dashboard to see the file?
yes
then like I said, you need to use the API to access and download the file, save it to somewhere on your server, and have your frontend show a link to the downloaded file. We don't have a shareable link or hosting for the file on our server.
I don't think it does give a .tmp file, it's probably the way you're downloading it in your code, I'm not sure.