#mrelliot69

1 messages ยท Page 1 of 1 (latest)

fervent hinge
#

๐Ÿ‘‹ happy to help

vapid flume
#

Im using files stripe api, and wanted to know how i can generate a preview of a file upload to stripe

fervent hinge
#

๐Ÿ‘‹ happy to help

#

you'd have to build that yourself

vapid flume
#

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

fervent hinge
#

oh yeah I see

vapid flume
#

im retriving the files submited in this dispute dp_1LAsh6CRI4H2eNZZOrP8F8I0

fervent hinge
#

this is because it's a downloadable resource

vapid flume
#

how i can preview insted of "download"

#

*generate a preview link

flint coyote
#

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.

vapid flume
#

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

flint coyote
flint coyote
#

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.

vapid flume
#

but way the link stripe download a tmp file insted of jpg or png

#

like i uploaded

flint coyote
#

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.