sudhanshug
Explore posts from serversTTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
if I reload my page, which re-requests the file, it works fine magically - probably you guys take some time to serve the file?
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
I've tried everything - using hex hmac signature with and without prefix, using b64 of the binary signature. nothing seems to work (copying your py library / following the uploading files doc)
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
Yo, getting "failed to verify url" error when the client tries to upload the file to the presigned url, how can i debug what's happening.
the url in question:
It is probably failing at hmac signature comparison, can you share the code you guys have for comparing signatures
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
yep
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
and this endpoint replaces
/v6/serverCallback
endpoint?73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
cool
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
alright, and what does the request look like? headers, body, query etc
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
can you tell me how and when i have to call it
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
oh, is it /v6/serverCallback?
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
can you point me to the documentation of that endpoint please. and when/where to call it. and the python library doesn't call that endpoint either
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
Question 2: When i register a bunch of file keys in route-metadata, will i receive a single callback or multiple?
Question 3: When isDev is true, each chunk received will be equivalent to a single callback? - if the answer to 2 is that there are N callbacks for N registered files, then each chunk should correspond to a single callback.
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
Question 1: is it an endpoint i have to build in my app or is it a uploadthing endpoint
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
sorry, where is the documentation on callback-result?
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
awaitServerData: If set to true, the upload request will not respond immediately after file upload, but instead wait for your server to call the /callback-result endpoint with the result of running the onUploadComplete callback. Enable this only if your client needs to get data from the server callback as it will increase the duration of the upload.This is under the
route-metadata
part of the documentation. Does the upload not complete in the FE if this is true or does the route-metadata api call not resolve, 😕73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
also, what are these
onUploadComplete
and onUploadError
callbacks? are they backend apis? are they functions exported by the FE library?73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
Yo, I got back to working on uploads and I am confused about '/callback-result' endpoint in this documentation https://docs.uploadthing.com/uploading-files. What is this? Dont see mentions anywhere else
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
It’s never too late to be a rails convert. xD
73 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 10/21/2024 in #questions
[Rails + UT] /v6/prepareUpload not returning presigned URL
thanks! I'll ping you if I come across any issues - otherwise i'll try to create an activestorage adapter for rails folks!
73 replies