YUCCIE
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
Thanks Matheus. I have tried out this code but still not working. Superweird. When I do this on the FileUIpload page (i.e change the export const FileUpload and change the Interface. I get an error only on the fileName saying "Property fileName does not exist on type UploadFileREsponse<null>"
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
I am not sure where to reflect this exactly, I literally began coding 3 weeks ago lol. Would you mind writing the additional lines you would incorporate on these files: the file-upload.tsx, the attachment-form (where I call the file-upload component)? That would be much appreciated so that I can see better what your suggestion is. Also, I guess there is no need to modify the route.ts and core.ts of Uploadthing. Thanks for the help thus far. File-upload.tsx:
The reference in my attachment-form.tsx of the file-upload:
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
I want the easiest way of doing it. What matters at the end is just to display the correct name of the file (i,e FileName and not FileKey). The file upload component link to the URL field and I use it it my attachment form component. See my code below:
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
Correct, here is how the db looks like :
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
but it seems there is no way to actually display to my user the name (fileName) directly (before they download) in the dashboard.
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
and I know that once it downloads the fileName correctly appears
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
here is the name of the file I obtain (3d5eacf2-7cc9-4bbd-b9a7-918c93dd1700-lzt3v2.xlsb) instead of my file name (Financial model.xlsb)
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
My goal is to preserve the file name after Upload
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
Thanks @Matheus Lasserre, will check ok Monday 🙏- so no need to store the new name in my db somewhere with this approach?
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
Hey there, just following up, anyone has any idea?
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/23/2024 in #questions
Change File Name Automatically
Any idea how to modify the pages to make this happen? Thanks a lot
24 replies
TTCTheo's Typesafe Cult
•Created by YUCCIE on 1/10/2024 in #questions
2 issues: 1/ Microsoft files 2/ name of the file
Thank you @Matvey I will take a look
4 replies