mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
Add two more just-published articles at README.md > Blogs
Former-commit-id: ecf7a03013f6c2bd3025a19688b7fd3ce9df7ae7
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
# Articles
|
||||
|
||||
- [How to build a file upload form using DropzoneJS and Go](https://dev.to/kataras/dropzonejs--go-series---part-1-474)
|
||||
- [How to display existing files on server using DropzoneJS and Go](https://dev.to/kataras/dropzonejs--go-series---part-2-4n1)
|
||||
|
||||
# Content
|
||||
|
||||
This is the part 1 of 2 in DropzoneJS + Go series.
|
||||
|
||||
- [Part 1: How to build a file upload form](README.md)
|
||||
@@ -145,7 +152,8 @@ func main() {
|
||||
7. If file is sent to the page, store the file object to a temporary "file" variable.
|
||||
8. Move uploaded file to destination based on the uploadsDir+uploaded file's name.
|
||||
|
||||
**Run the server**
|
||||
### Runing the server
|
||||
|
||||
Open the terminal at the current project's folder and execute:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Articles
|
||||
|
||||
- [How to build a file upload form using DropzoneJS and Go](https://dev.to/kataras/dropzonejs--go-series---part-1-474)
|
||||
- [How to display existing files on server using DropzoneJS and Go](https://dev.to/kataras/dropzonejs--go-series---part-2-4n1)
|
||||
|
||||
# Content
|
||||
|
||||
This is the part 2 of 2 in DropzoneJS + Go series.
|
||||
|
||||
- [Part 1: How to build a file upload form](README.md)
|
||||
@@ -5,7 +12,7 @@ This is the part 2 of 2 in DropzoneJS + Go series.
|
||||
|
||||
# DropzoneJS + Go: How to display existing files on server
|
||||
|
||||
In this tutorial, we will show you how to display existing files on the server when using DropzoneJs and Go. This tutorial is based on [How to build a file upload form using DropzoneJs and Go](README.md). Make sure you have read it before proceeding to content in this tutorial.
|
||||
In this tutorial, we will show you how to display existing files on the server when using DropzoneJS and Go. This tutorial is based on [How to build a file upload form using DropzoneJS and Go](README.md). Make sure you have read it before proceeding to content in this tutorial.
|
||||
|
||||
## Table Of Content
|
||||
|
||||
@@ -276,8 +283,8 @@ Copy content below to "./views/upload.html". We will go through modifications in
|
||||
4. Retrieve files details from the new "/uploads" via ajax.
|
||||
5. Create mockFile using values from server. mockFile is simply JavaScript objects with properties of name and size. Then we call Dropzone's **addedfile** and **thumbnail** functions explicitly to put existing files to Dropzone upload area and generate its thumbnail.
|
||||
|
||||
### Runing the server
|
||||
|
||||
**Run the server**
|
||||
Open the terminal at the current project's folder and execute:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user