Your folder&file structure should look like this after the preparation: Create a file "./main.go", this is for handling backend file upload process.Create a file "./views/upload.html", this is for the front form page.Create a folder "./public/uploads", this is for storing uploaded files.Download dropzone.css from this URL, if you want some already made css.DropzoneJS does not rely on JQuery, you will not have to worry that, upgrading JQuery version breaks your application. Install Iris open a terminal and execute go get -u /kataras/iris.Download Go(Golang), setup your computer as shown there and continue to 2.In this tutorial, we are building a multiple file upload form using DropzoneJS, and the backend will be handled by Go and Iris. It is a great JavaScript library which actually does not even rely on JQuery. Part 2: How to display existing files on serverĭropzoneJS + Go: How to build a file upload formĭropzoneJS is an open source library that provides drag'n'drop file uploads with image previews.Part 1: How to build a file upload form. ![]() This is the part 1 of 2 in DropzoneJS + Go series.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |