Automating Image Uploads: Go-Fswatch & API - Series episode 4

Описание к видео Automating Image Uploads: Go-Fswatch & API - Series episode 4

In Part 4 of the series, we take a deep dive into creating a custom Golang application using go-fswatch to monitor a folder on a computer for new images. The goal of this application is to automatically upload these new images to the photo slideshow backend using the photo upload API created in Part 2 of the series.

We start by introducing go-fswatch and how it's used to monitor a specific folder for new files. We walk through the process of setting up the go-fswatch and the callback function that is triggered when new files are detected.

Next, we discuss how to create a form data post using Golang to simulate the submission of a form to the API endpoint. This includes how to create the necessary headers, formatting the data and sending the post request.

We also discuss how to handle the response from the API and how to handle errors if they occur. We also show some example to check response status code, handling json error from the server, etc

Throughout the video, we provide practical examples and code snippets to help viewers understand how to create a custom Golang application using go-fswatch and how to use it to upload new images to the backend. By the end of Part 4, viewers should have a solid understanding of how to use go-fswatch to monitor a folder and upload new files to the backend automatically.

Watch the whole series:    • Creating a FULL-STACK Social Photo Sh...  

Ask Cloud Architech website: https://askcloudarchitech.com

Git Repo: https://github.com/askcloudarchitech/...

Chapters:
Intro - 0:00
File structure - 0:13
Setting up go-fswatch - 0:40
Handling files returned from go-fswatch - 3:00
Uploading new images to the server - 4:43

Комментарии

Информация по комментариям в разработке