toadmilk
toadmilk
Explore posts from servers
TTCTheo's Typesafe Cult
Created by toadmilk on 9/1/2024 in #questions
what do you guys think of copilot vs cursor?
.
10 replies
TTCTheo's Typesafe Cult
Created by toadmilk on 8/5/2024 in #questions
can you make REST requests with node on a t3 project?
how does that work can I just also have a node backend or
4 replies
TTCTheo's Typesafe Cult
Created by toadmilk on 7/9/2023 in #questions
how to make a custom styled UploadButton
export const UploadImage = () => {
return (
<div className="flex flex-col items-center justify-between p-4">
<UploadButton
endpoint="postImage"
onClientUploadComplete={(res) => {
toast.success('Image uploaded successfully! 😄');
}}
onUploadError={(error: Error) => {
toast.error(error.message + " 😭");
}}
/>
</div>
)
};
export const UploadImage = () => {
return (
<div className="flex flex-col items-center justify-between p-4">
<UploadButton
endpoint="postImage"
onClientUploadComplete={(res) => {
toast.success('Image uploaded successfully! 😄');
}}
onUploadError={(error: Error) => {
toast.error(error.message + " 😭");
}}
/>
</div>
)
};
My goal is to use an icon <BsImage /> instead of the button and to be able to select a file then upon a function running the upload being called. Thanks in advance 😄
4 replies
TTCTheo's Typesafe Cult
Created by toadmilk on 6/30/2023 in #questions
[Solved] for the audio on uploadthing what filetypes exactly does it accept?
I don't want people uploading wavs just mp3s or if they do upload a wav convert it to mp3 without losing too much quality.
3 replies