DEV Community


Discussion on: 5 Minutes Tutorial Series - NodeJS upload files to Minio

gokayokyay profile image
Gökay Okyay Author • Edited

Hello! The file url will be

Yes, you can save any file, not just images.

You can save the file’s url and the name to your db. However you need to be sure that file’s been uploaded successfully. In order to do that, save url and name of the file inside of the putObject method’s callback, after checking for the error ofc.

dogancalli profile image
dogancalli • Edited

Hello it's me again :)
What am i doing wrong on my post method ?'/documents',(request, response) => {
    client.presignedPutObject('uploads',, (err, url ,obj) => {
        dataAPI = {
Enter fullscreen mode Exit fullscreen mode
Thread Thread
gokayokyay profile image
Gökay Okyay Author

It’s hard to tell just by looking at it but what’s with the dollar sign? Did you try to create a template literal? And it’ll be better gor you to check if any errors occurred.
Btw I didn’t use the presignedPutObject method on tutorial, have you read the docs? 😄