Thank you for this brilliant tutorial. In one case I ran into a problem. And that was returning the downloaded file as a "File" from the endpoint. For me it only worked when I finally used Results.File() and not just File in the manner of a static class as you did. Anyways, it worked well and I was glad to have this ressource shared by you to the community 🙏🏼
Can you make video on how to get the current uploading or downloading percentage for this? e.g. 10% uploaded , 90% ,100%. Currently its only await blobClient.UploadAsync(filePath, true); so i cannot get percentage from it.
Hi! Could you please make a video in how to map REST API to your DDD-driven app? For example when PUT/PATCH on some of the resource fields have to invoke some specific business logic, not just validate content length
but how can i upload multiple files at the same time with some data lets say for example the the user will upload some images with captions like class image { string caption; iformfile image } can i just do that [post] async upload (list images) or class userImages { string userid; list images } [post] async upload (userImages userImages)
@@Codewrinkles while this would work i was try to ask how to do the same when IFormFile is nested in a class with other data and that class is used as list in the class which have the user inputs and i will use or there a better way to upload and save the files only if the user inputs was also received and saved to the database
Because there are no constraints that would impose you to do otherwise. You can have just one instance of your service and do all those operations with the same instance. As long as the service itself doesn't keep any state that might change from one operation to the other, you can use singletons.
Make a video on fetching the file with different scenarios(all the files, single file, file with timestamp, file from particular folder etc) as well, that’ll willingly be great. I couldn’t find that type of video on UA-cam. Thanks for your content
Hmmm. From the API perspective it doesn't really chane too much. You would just need to get an IFormFile[] instead IFormFile in your body. I assume your challenges reside more on the front end, right?
Awesome tutorial, quick, simple, and yet covers everything. Brilliant Sir!
Thank you for this brilliant tutorial. In one case I ran into a problem. And that was returning the downloaded file as a "File" from the endpoint. For me it only worked when I finally used Results.File() and not just File in the manner of a static class as you did. Anyways, it worked well and I was glad to have this ressource shared by you to the community 🙏🏼
Glad it helped
Awesome tutorial, quick, simple, and yet covers everything. Brilliant Sir!
this exactly that i want
Can you make video on how to get the current uploading or downloading percentage for this? e.g. 10% uploaded , 90% ,100%. Currently its only await blobClient.UploadAsync(filePath, true); so i cannot get percentage from it.
If you put the URI of the file on browser (from response body), it would show it? that means, that you could use it on a web page html?
I loove this video, but how can I reuse the code for different containers inside the same storageaccount for dev/prod environment?
Thanks a lot for this tutorial
Can you please share video for Azure AD authentication to access blob storage ?
Hi! Could you please make a video in how to map REST API to your DDD-driven app? For example when PUT/PATCH on some of the resource fields have to invoke some specific business logic, not just validate content length
My God this is excellent thanks man great job
Glad you like it!
How easy is to authenticate users from database table ?
i need solusation sir
Great Video - what IDE are you using?
Intellij Rider
Thank you, usefull.🙂
Glad it was helpful!
should we worry about the size of the uploaded files? will the stream handle that part?
you should handle that before you upload,
thanks brother from another mother nice beard bro
but how can i upload multiple files at the same time with some data lets say for example the the user will upload some images with captions like
class image
{
string caption;
iformfile image
}
can i just do that
[post] async upload (list images)
or
class userImages
{
string userid;
list images
}
[post] async upload (userImages userImages)
You create a Dto that contains user inputs + IFormFile property for the file.
Then you take in a List (or YourDto[]) in your controller action.
@@Codewrinkles while this would work i was try to ask how to do the same when IFormFile is nested in a class with other data and that class is used as list in the class which have the user inputs and i will use
or there a better way to upload and save the files only if the user inputs was also received and saved to the database
Just a question here, why use it as a singleton?
Because there are no constraints that would impose you to do otherwise. You can have just one instance of your service and do all those operations with the same instance. As long as the service itself doesn't keep any state that might change from one operation to the other, you can use singletons.
@@Codewrinkles fair enough
Seems pretty tightly coupled and untestable. WHy didn't you inject the client?
Great video.
Glad you enjoyed it.
Make a video on fetching the file with different scenarios(all the files, single file, file with timestamp, file from particular folder etc) as well, that’ll willingly be great. I couldn’t find that type of video on UA-cam. Thanks for your content
Hmmm. From the API perspective it doesn't really chane too much. You would just need to get an IFormFile[] instead IFormFile in your body. I assume your challenges reside more on the front end, right?